Simon D Simon D - 4 months ago 53
Node.js Question

SLC Command not found

Im using Mac OS X 10.10.2 .

node -v v0.12.1

npm -v 2.5.1

Installing the strongloop Package via
npm install -g strongloop
worked only with sudo even when i fixed the permission rights via

$ sudo chown -R $USER /usr/local/bin

$ sudo chown -R $USER /usr/local/lib/node_modules

Without sudo it throws EACCS errorĀ“s http://pastebin.com/uJbjbXG3

/usr/local/bin/npm/node_modules/strongloop/bin/slc
exists.
Any thoughts?

Answer

As mentioned in a reply to an possible solution. Here is my solution npm config set prefix /usr/local