Reputation: 667
I'm going through the tutorials of http://docs.strongloop.com, and I've reached http://docs.strongloop.com/display/public/LB/Add+a+client+app.
Yet when I execute 'lb-ng ../server/server.js js/lb-services.js' I get an error: Cannot find module 'loopback'.
Any help would be appreciated!
Upvotes: 1
Views: 3186
Reputation: 749
install strong loop and then run lb-ng
command this is how i fixed this problem
Upvotes: 0
Reputation: 2136
if you're using a newer version of node, try uninstalling node and reinstalling an LTS version.
npm uninstall -g strongloop
npm cache clear
npm install -g strongloop
This is how I fixed this problem for me.
Upvotes: 0
Reputation: 2186
For the new version of loopback you need to install lb-ng command with this line of command
sudo npm install -g loopback-sdk-angular-cli
also try to be in the client folder make sure that you have js directory in client directory then execute these lb-ng commad
lb-ng ../server/server.js js/lb-services.js
it will work :)
Upvotes: 1
Reputation: 2781
did you npm install
your dependencies? check and see if you have a node_modules
dir in your project root.
Upvotes: 0