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
I tried out installing nvm/node (with npm) on WSL
(Windows 10 Home Premium x64) and it worked great for me.
WSL has apt with which the node/nvm dependencies can/have to be installed first as on Linux/Debian (error: could not configure a cxx compiler!).
Only issue was the nvm initialization line in .bashrc wasn't loaded first,
after resetting/restarting the terminal twice, the nvm command became available.
Installing modules with bindings like sharp works well, too.
npm install -g (for a global install) seems to have issues with permissions, even as root user in WSL:
# npm install -g sharp
> sharp@0.17.2 install /root/.nvm/versions/node/v4.8.0/lib/node_modules/sharp
> node-gyp rebuild
sh: 1: node-gyp: Permission denied
npm ERR! Linux 3.4.0+
npm ERR! argv "/root/.nvm/versions/node/v4.8.0/bin/node" "/root/.nvm/versions/node/v4.8.0/bin/npm" "install" "-g" "sharp"
npm ERR! node v4.8.0
npm ERR! npmv4.2.0
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! sharp@0.17.2 install: `node-gyp rebuild`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the sharp@0.17.2 install script 'node-gyp rebuild'.
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 sharp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:npm ERR!npm bugs sharp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!npm owner ls sharp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/.npm/_logs/2017-02-23T18_34_13_790Z-debug.log
Related: #284 (comment)
I tried out installing nvm/node (with npm) on WSL
(Windows 10 Home Premium x64) and it worked great for me.
WSL has apt with which the node/nvm dependencies can/have to be installed first as on Linux/Debian (
error: could not configure a cxx compiler!
).Only issue was the nvm initialization line in .bashrc wasn't loaded first,
after resetting/restarting the terminal twice, the nvm command became available.
Installing modules with bindings like sharp works well, too.
npm install -g
(for a global install) seems to have issues with permissions, even as root user in WSL:2017-02-23T18_34_13_790Z-debug.log
The text was updated successfully, but these errors were encountered: