scion cli installation issue on Ubuntu 18.04
Here is the installation output:
ubuntu:~/scion$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
ubuntu:~/scion$ npm -v
6.14.8
ubuntu:~/scion$ node -v
v14.15.0
ubuntu:~/scion$ sudo npm install -g @scion-scxml/cli
npm WARN deprecated licensezero-postinstall@1.0.0: using postinstall output for this purpose is no longer recommended
npm WARN deprecated react-ui-layout@1.0.4: this package has been deprecated
npm WARN deprecated babel-preset-es2015@6.24.1: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
/usr/bin/scion -> /usr/lib/node_modules/@scion-scxml/cli/bin/cli.js
> dtrace-provider@0.8.8 install /usr/lib/node_modules/@scion-scxml/cli/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js
gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/home/ubuntu/.cache/node-gyp/14.15.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/@scion-scxml/cli/node_modules/dtrace-provider/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/@scion-scxml/cli/node_modules/dtrace-provider/.node-gyp'
gyp ERR! System Linux 5.4.0-1028-aws
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/@scion-scxml/cli/node_modules/dtrace-provider
gyp ERR! node -v v14.15.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
> core-js@2.6.11 postinstall /usr/lib/node_modules/@scion-scxml/cli/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> @scion-scxml/schviz@3.2.25 postinstall /usr/lib/node_modules/@scion-scxml/cli/node_modules/@scion-scxml/schviz
> licensezero-postinstall
_ ___ ____ _____ _ _ ____ _____ __________ ____ ___
| | |_ _/ ___| ____| \ | / ___|| ____| |__ / ____| _ \ / _ \
| | | | | | _| | \| \___ \| _| / /| _| | |_) | | | |
| |___ | | |___| |___| |\ |___) | |___ / /_| |___| _ <| |_| |
|_____|___\____|_____|_| \_|____/|_____| /____|_____|_| \_\\___/
@scion-scxml/schviz 3.2.25 is a License Zero package.
Contributions to this package are free to use in open source
under the Parity Public License. Licenses for use in closed
software are available via licensezero.com.
See:
https://licensezero.com/ids/275619c6-1d2d-4e70-b50b-d2bd77acfe4d
> @scion-scxml/dashboard@1.0.21 postinstall /usr/lib/node_modules/@scion-scxml/cli/node_modules/@scion-scxml/dashboard
> licensezero-postinstall && node scripts/postinstall.js
_ ___ ____ _____ _ _ ____ _____ __________ ____ ___
| | |_ _/ ___| ____| \ | / ___|| ____| |__ / ____| _ \ / _ \
| | | | | | _| | \| \___ \| _| / /| _| | |_) | | | |
| |___ | | |___| |___| |\ |___) | |___ / /_| |___| _ <| |_| |
|_____|___\____|_____|_| \_|____/|_____| /____|_____|_| \_\\___/
@scion-scxml/dashboard 1.0.21 is a License Zero package.
Contributions to this package are free to use in open source
under the Parity Public License. Licenses for use in closed
software are available via licensezero.com.
See:
https://licensezero.com/ids/e5b546f8-04c6-4a14-8ae4-9413a491c8b5
/usr/lib/node_modules/@scion-scxml/cli/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:45
throw err0
^
Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/@scion-scxml/cli/node_modules/@scion-scxml/dashboard/node_modules'
at Object.mkdirSync (fs.js:987:3)
at mkdirsSync (/usr/lib/node_modules/@scion-scxml/cli/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:31:9)
at Object.mkdirsSync (/usr/lib/node_modules/@scion-scxml/cli/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:36:14)
at Object.<anonymous> (/usr/lib/node_modules/@scion-scxml/cli/node_modules/@scion-scxml/dashboard/scripts/postinstall.js:7:4)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
errno: -13,
syscall: 'mkdir',
code: 'EACCES',
path: '/usr/lib/node_modules/@scion-scxml/cli/node_modules/@scion-scxml/dashboard/node_modules'
}
npm WARN notsup Unsupported engine for text-to-js-identifier@0.0.4: wanted: {"node":"0.6.x"} (current: {"node":"14.15.0","npm":"6.14.8"})
npm WARN notsup Not compatible with your version of node/npm: text-to-js-identifier@0.0.4
npm WARN @scion-scxml/schviz@3.2.25 requires a peer of jquery@^3.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-inspector@2.3.1 requires a peer of react@^0.14.0 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-redux@5.1.2 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @scion-scxml/react-collapsible@2.0.30 requires a peer of react@~15 || ~16 but none is installed. You must install peer dependencies yourself.
npm WARN @scion-scxml/react-collapsible@2.0.30 requires a peer of react-dom@~15 || ~16 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @scion-scxml/dashboard@1.0.21 postinstall: `licensezero-postinstall && node scripts/postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @scion-scxml/dashboard@1.0.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! /home/ubuntu/.npm/_logs/2020-11-01T14_32_16_032Z-debug.log
```[debug.log](/uploads/241d75c811ff1fda70e739a224ea8462/debug.log)
Edited by Christophe Gerard