You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The combination of using multiple node/npm/node-gyp versions via nvm and installing as root is probably going to cause all sorts of file-trampling problems :(
graceful-fs is a deeply-nested dependency:
$ npm ls --production graceful-fs
sharp@0.17.0
tar@2.2.1
fstream@1.0.10
graceful-fs@4.1.9
The combination of using multiple node/npm/node-gyp versions via nvm and
installing as root is probably going to cause all sorts of file-trampling
problems :(
graceful-fs is a deeply-nested dependency:
$ npm ls --production graceful-fs
sharp@0.17.0
tar@2.2.1
fstream@1.0.10
graceful-fs@4.1.9
My package.json has "sharp": "^0.16.2", I am installing as root (I have to unfortunately). I have nvm installed which currently points to 6.9.0.
root@ip-# node --version
v6.9.0
root@ip-# npm --version
3.10.8
root@# npm install
module.js:474
throw err;
^
Error: Cannot find module 'graceful-fs'
at Function.Module._resolveFilename (module.js:472:15)
at Function.Module._load (module.js:420:25)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at Object. (/usr/share/node-gyp/lib/node-gyp.js:12:10)
at Module._compile (module.js:573:32)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
npm ERR! Linux 3.13.0-91-generic
npm ERR! argv "/root/.nvm/versions/node/v6.9.0/bin/node" "/root/.nvm/versions/node/v6.9.0/bin/npm" "install"
npm ERR! node v6.9.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! sharp@0.16.2 install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.16.2 install script 'node-gyp rebuild'.
The text was updated successfully, but these errors were encountered: