Sao install on debian

i just to install sao and i got this :frowning_face:

npm WARN deprecated bower@1.8.8: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/

> tryton-sao@4.2.21 postinstall /home/vagrant/node_modules/tryton-sao
> bower install --allow-root

/home/vagrant/node_modules/bower/lib/node_modules/configstore/index.js:54
                                throw err;
                                ^

Error: EACCES: permission denied, open '/root/.config/configstore/bower-github.json'
You don't have access to this file.

    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at Configstore.get (/home/vagrant/node_modules/bower/lib/node_modules/configstore/index.js:35:26)
    at new Configstore (/home/vagrant/node_modules/bower/lib/node_modules/configstore/index.js:28:45)
    at readCachedConfig (/home/vagrant/node_modules/bower/lib/config.js:19:23)
    at defaultConfig (/home/vagrant/node_modules/bower/lib/config.js:11:12)
    at Object.<anonymous> (/home/vagrant/node_modules/bower/lib/index.js:16:32)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
npm WARN enoent ENOENT: no such file or directory, open '/home/vagrant/package.json'
npm WARN vagrant No description
npm WARN vagrant No repository field.
npm WARN vagrant No README data
npm WARN vagrant No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tryton-sao@4.2.21 postinstall: `bower install --allow-root`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the tryton-sao@4.2.21 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-22T10_00_59_365Z-debug.log

Yes… m also facing same

Please provide exactly what command and where you are running.

1 Like

npm install --production --legacy-peer-deps

tryton-sao@6.0.12 postinstall
npx bower install

glob error [Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’] {
errno: -13,
code: ‘EACCES’,
syscall: ‘scandir’,
path: ‘/root/.npm/_logs’
}
npm WARN logfile Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’
npm WARN logfile error cleaning log files [Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’] {
npm WARN logfile errno: -13,
npm WARN logfile code: ‘EACCES’,
npm WARN logfile syscall: ‘scandir’,
npm WARN logfile path: ‘/root/.npm/_logs’
npm WARN logfile }
/home/gnuhealth/gnuhealth/sao/node_modules/bower/lib/node_modules/configstore/index.js:54
throw err;
^

Error: EACCES: permission denied, open ‘/root/.config/configstore/bower-github.json’
You don’t have access to this file.

at Object.openSync (fs.js:462:3)
at Object.readFileSync (fs.js:364:35)
at Configstore.get (/home/gnuhealth/gnuhealth/sao/node_modules/bower/lib/node_modules/configstore/index.js:35:26)
at new Configstore (/home/gnuhealth/gnuhealth/sao/node_modules/bower/lib/node_modules/configstore/index.js:28:45)
at readCachedConfig (/home/gnuhealth/gnuhealth/sao/node_modules/bower/lib/config.js:19:23)
at defaultConfig (/home/gnuhealth/gnuhealth/sao/node_modules/bower/lib/config.js:11:12)
at Object.<anonymous> (/home/gnuhealth/gnuhealth/sao/node_modules/bower/lib/index.js:16:32)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32) {

errno: -13,
syscall: ‘open’,
code: ‘EACCES’,
path: ‘/root/.config/configstore/bower-github.json’
}
npm ERR! code 1
npm ERR! path /home/gnuhealth/gnuhealth/sao
npm ERR! command failed
npm ERR! command sh -c npx bower install

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-01-16T05_15_16_793Z-debug-0.log

You seem to be running it as root but without access to /root/.npm/_logs.
It is not recommended to install sao using root, it does not need.

1 Like

True… it working that a lot CED

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.