I do not know from where such value come from but the [web] root path should point to the web client (aka sao) source code.
You may find it at tryton-sao - npm and installed in the directory pointed by the configuration.
Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you’re having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
You can however run a command with sudo using “–allow-root” option
npm WARN enoent ENOENT: no such file or directory, open ‘/home/andreas/package.json’
npm WARN andreas No description
npm WARN andreas No repository field.
npm WARN andreas No README data
npm WARN andreas No license field.
npm ERR! Linux 4.15.0-74-generic
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “i” “tryton-sao”
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! tryton-sao@5.0.18 postinstall: bower install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tryton-sao@5.0.18 postinstall script ‘bower install’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the tryton-sao package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs tryton-sao
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls tryton-sao
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/andreas/npm-debug.log
Where is /usr/bin/npm i tryton-sao to be executed from? And do I call it to fix the error with bower above?
…
31699 silly install printInstalled
31700 warn enoent ENOENT: no such file or directory, open ‘/home/andreas/package.json’
31701 warn andreas No description
31702 warn andreas No repository field.
31703 warn andreas No README data
31704 warn andreas No license field.
31705 verbose stack Error: tryton-sao@5.0.18 postinstall: bower install
31705 verbose stack Exit status 1
31705 verbose stack at EventEmitter. (/usr/share/npm/lib/utils/lifecycle.js:232:16)
31705 verbose stack at emitTwo (events.js:126:13)
31705 verbose stack at EventEmitter.emit (events.js:214:7)
31705 verbose stack at ChildProcess. (/usr/share/npm/lib/utils/spawn.js:24:14)
31705 verbose stack at emitTwo (events.js:126:13)
31705 verbose stack at ChildProcess.emit (events.js:214:7)
31705 verbose stack at maybeClose (internal/child_process.js:925:16)
31705 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
31706 verbose pkgid tryton-sao@5.0.18
31707 verbose cwd /home/andreas
31708 error Linux 4.15.0-74-generic
31709 error argv “/usr/bin/node” “/usr/bin/npm” “i” “tryton-sao”
31710 error node v8.10.0
31711 error npm v3.5.2
31712 error code ELIFECYCLE
31713 error tryton-sao@5.0.18 postinstall: bower install
31713 error Exit status 1
31714 error Failed at the tryton-sao@5.0.18 postinstall script ‘bower install’.
31714 error Make sure you have the latest version of node.js and npm installed.
31714 error If you do, this is most likely a problem with the tryton-sao package,
31714 error not with npm itself.
31714 error Tell the author that this fails on your system:
31714 error bower install
31714 error You can get information on how to open an issue for this project with:
31714 error npm bugs tryton-sao
31714 error Or if that isn’t available, you can get their info via:
31714 error npm owner ls tryton-sao
31714 error There is likely additional logging output above.
31715 verbose exit [ 1, true ]
That worked out!
exept
bower eonasdan-bootstrap-datetimepicker#^4.17 invalid-meta for:/tmp/andreas/bower/76bd398ee7174f6f95c3ab9b1ab3c397-12541-QGbkF4/bower.json
bower eonasdan-bootstrap-datetimepicker#^4.17 invalid-meta The “main” field cannot contain minified files
bower eonasdan-bootstrap-datetimepicker#^4.17 invalid-meta The “main” field cannot contain minified files
and
npm WARN enoent ENOENT: no such file or directory, open ‘/home/andreas/package.json’
So in /var/www/node_modules/tryton-sao there is no folder www.
I now executed npm install --production in /var/www/node_modules/tryton-sao but got an error:
…
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm ERR! Linux 4.15.0-74-generic
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install” “–production”
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! Cannot read property ‘target’ of null
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/node_modules/tryton-sao/npm-debug.log
I don’t need a folder www Just saw the line root = /usr/share/tryton-sao/www in trytond.conf and was not sure about what is needed.
Now I have it like that root = /var/www/node_modlules/tryton-sao and was hoping I can connect to localhost:8000 but get