Search code examples
node.jsloopbackjsstrongloop

Error while creating a loopback application in strongloop


I have installed all the dependency for strongloop, e.g nodejs v0.12.0 and npm 2.5.1, and of course the strongloop using:

npm install strongloop 

as its mentioned in their getting started page,and I can see the node_modules have been created for the strongloop however when I try to create a loopback application by using:

slc loopback 

I keep getting this error:

Error loading module "loopback": [Error: Module did not self-register.]


Solution

  • apparently I have to add the -g flag during installation, I have been looking inside the docs about if it has a special meaning, I guess its used for global installation which I am kinda not a fan of! however it worked afterwards