Reputation: 201
I am trying to install StrongLoop LoopBack in my Ubuntu 14.04 LTS. The installation through console always keeps on doing this. This is my output from console. Is everything going right here? Help me solve it. I couldn't complete the strongloop install in my laptop.
sarnathkj@SARAN:~$ sudo npm install -g strongloop
[sudo] password for sarnathkj:
> [email protected] install /usr/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/heapdump
> node-gyp rebuild
make: Entering directory `/usr/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/heapdump/build'
CXX(target) Release/obj.target/heapdump/src/heapdump.o
CXX(target) Release/obj.target/heapdump/src/platform-posix.o
SOLINK_MODULE(target) Release/obj.target/heapdump.node
SOLINK_MODULE(target) Release/obj.target/heapdump.node: Finished
COPY Release/heapdump.node
make: Leaving directory `/usr/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/heapdump/build'
> [email protected] install /usr/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/strong-fork-syslog
> node-gyp rebuild
make: Entering directory `/usr/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/strong-fork-syslog/build'
CXX(target) Release/obj.target/syslog/syslog.o
SOLINK_MODULE(target) Release/obj.target/syslog.node
SOLINK_MODULE(target) Release/obj.target/syslog.node: Finished
COPY Release/syslog.node
make: Leaving directory `/usr/lib/node_modules/strongloop/node_modules/strong-supervisor/node_modules/strong-fork-syslog/build'
> [email protected] install /usr/lib/node_modules/strongloop/node_modules/strong-agent
> node-gyp rebuild || exit 0
make: Entering directory `/usr/lib/node_modules/strongloop/node_modules/strong-agent/build'
CXX(target) Release/obj.target/strong-agent/src/strong-agent.o
SOLINK_MODULE(target) Release/obj.target/strong-agent.node
SOLINK_MODULE(target) Release/obj.target/strong-agent.node: Finished
COPY Release/strong-agent.node
make: Leaving directory `/usr/lib/node_modules/strongloop/node_modules/strong-agent/build'
> [email protected] install /usr/lib/node_modules/strongloop/node_modules/node-inspector/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
Upvotes: 1
Views: 1041
Reputation: 105
Anoop ... you say ver 4 but you mean 0.10.4, correct?
We haven't gotten it going on 4.2.2 yet on Ubuntu (on Cloud9) ... but it works great on Fedora (local)
Upvotes: 0
Reputation: 2872
I had the problem, not able to install strongloop in node version 0.12.x. So I installed node ver0.10.40, then npm and was able to install strongloop.
Running on node ver 4 is smooth btw.
I'm also using Ubuntu 14.
Upvotes: 0
Reputation: 1
It seems to be related the version of npm you use. I also ran into this problem, I was using nvm to install node and npm. I solved the problem by installing the latest npm using apt-get install npm
. Just have a try
Upvotes: 0
Reputation:
Ok, I had the same issue with node v0.12.0, v0.12.1, npm v2.5.1 and same operating system. Installation seems to hang but if you press enter couple of times its responsive again and you get into the shell.
After that you will notice that for some reason symbolic links are not being created but the module seems to be installed correctly. To fix this I have created the sym links manually like this:
sudo ln -s /usr/local/lib/node_modules/strongloop/bin/slc /usr/local/bin/
This will enable you to use slc cli across the machine. Also, if you are using loopback-sdk-angular-cli which containes lb-ng and lb-ng-doc commands (which should be installed with npm install -g strongloop) you need to create those symlinks aswell. You do that like this:
sudo ln -s /usr/local/lib/node_modules/strongloop/node_modules/loopback-sdk-angular-cli/bin/* /usr/local/bin/
This will enable you to use lb-ng across the machine, however it could happen as well that the tool will be broken with missing dependency errors. To fix those, enter to the path where module installed and execute npm install to install dependencies. On ubuntu 14.04 LTS you do that like this:
cd /usr/local/lib/node_modules/strongloop/node_modules/loopback-sdk-angular-cli
npm install
Hope it helps.
Upvotes: 1