can't install loopback
getting errors when installing loopback on osx, not sure why, I had this installed before with no problems?
What kind of errors?
My experience is:
First install some module separately, such as: strong-supervisor or other stuff, depending on the error. Then try the: $ npm install -g strongloop again.
Also the strongloop document on the website also has some troubleshooting may help.
Hope this help.
The errors may be from some permissions with running the post install script. Try this npm install -g strong-cli ( you may see some errors that the next command should fix) and slc update If this doesn't work please send the errors to [email protected]
This is the error I get when I try to install
Checking required modules...
- strong-cli@^2.6.0 - resolved by 2.6.2
- [email protected] - resolved by 1.1.2
The following StrongLoop modules are installed:
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1000:11)
at Process.ChildProcess._handle.onexit (child_process.js:791:34)
npm ERR! [email protected] install: node check-installation.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the strongloop package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node check-installation.js
npm ERR! You can get their info via:
npm ERR! npm owner ls strongloop
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.14.0-031400-generic npm ERR! command "node" "/usr/local/bin/npm" "-g" "--unsafe-perm" "install" "strongloop" npm ERR! cwd /home/dre/www npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/dre/www/npm-debug.log npm ERR! not ok code 0
Please run npm install -g strong-cli and then slc update.
zsh: command not found: slc
npm install -g strongloop works in my nitrous.io dev environment but not on my local machine. Could it be that I'm using zsh shell?
Can you troubleshoot as follows?
npm -g rootto see which directory is the root for global modulesls <root-dir>/../..bin/slcto see the script is there- Make sure
<root-dir>/../../binis on your PATH (possibly through a zsh profile)
@drejohnson: I use zsh, works fine, its not the source of your problem, though if node is in a path only visible to your current user/shell, that might cause problems when npm runs scripts. Could that be the case?
Yep, my PATH was the problem. Thanks!