loopback icon indicating copy to clipboard operation
loopback copied to clipboard

can't install loopback

Open anthonybrown opened this issue 12 years ago • 8 comments

getting errors when installing loopback on osx, not sure why, I had this installed before with no problems?

anthonybrown avatar Jul 31 '14 09:07 anthonybrown

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.

meng-zhang avatar Jul 31 '14 13:07 meng-zhang

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]

sumitha avatar Jul 31 '14 15:07 sumitha

This is the error I get when I try to install

Checking required modules...

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

drejohnson avatar Jul 31 '14 16:07 drejohnson

Please run npm install -g strong-cli and then slc update.

raymondfeng avatar Jul 31 '14 16:07 raymondfeng

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?

drejohnson avatar Jul 31 '14 17:07 drejohnson

Can you troubleshoot as follows?

  1. npm -g root to see which directory is the root for global modules
  2. ls <root-dir>/../..bin/slc to see the script is there
  3. Make sure <root-dir>/../../bin is on your PATH (possibly through a zsh profile)

raymondfeng avatar Jul 31 '14 19:07 raymondfeng

@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?

sam-github avatar Jul 31 '14 19:07 sam-github

Yep, my PATH was the problem. Thanks!

drejohnson avatar Jul 31 '14 19:07 drejohnson