Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install fails #36

Open
michael-read opened this issue Jun 23, 2021 · 0 comments
Open

install fails #36

michael-read opened this issue Jun 23, 2021 · 0 comments

Comments

@michael-read
Copy link

Running on Ubuntu 16.04 LTS,

Is the problem npm version or my OS?

$ cd trip-simulator/
$ npm version
{
'trip-simulator': '3.0.1',
npm: '6.14.13',
ares: '1.17.1',
brotli: '1.0.9',
cldr: '39.0',
icu: '69.1',
llhttp: '2.1.3',
modules: '83',
napi: '8',
nghttp2: '1.42.0',
node: '14.17.1',
openssl: '1.1.1k',
tz: '2021a',
unicode: '13.0',
uv: '1.41.0',
v8: '8.4.371.23-node.67',
zlib: '1.2.11'
}

$ npm install -g trip-simulator
npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN checkPermissions Missing write access to /usr/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, access '/usr/lib/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/lib/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/michael/.npm/_logs/2021-06-22T23_52_43_665Z-debug.log

So tried sudo:
$ sudo npm install -g trip-simulator
npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
/usr/bin/trip-simulator -> /usr/lib/node_modules/trip-simulator/src/cli.js

osrm@5.25.0 install /usr/lib/node_modules/trip-simulator/node_modules/osrm
node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/trip-simulator/node_modules/osrm/lib/binding'
node-pre-gyp ERR! System Linux 4.15.0-142-generic
node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/trip-simulator/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd /usr/lib/node_modules/trip-simulator/node_modules/osrm
node-pre-gyp ERR! node -v v14.17.1
node-pre-gyp ERR! node-pre-gyp -v v1.0.5
node-pre-gyp ERR! not ok
EACCES: permission denied, mkdir '/usr/lib/node_modules/trip-simulator/node_modules/osrm/lib/binding'
Needs cmake to build from source
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! osrm@5.25.0 install: node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the osrm@5.25.0 install 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/michael/.npm/_logs/2021-06-22T23_55_37_670Z-debug.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant