Sails.js installed globally in system npm directory, but looks inside node.js modules directory incorrectly -


node.js v0.12.7 installed on windows 10 via msi installer.

sails.js v0.11 installed npm install -g sails

but when attempted create new sails project via sails new testproject got this:

error: cannot find module 'c:\program files\nodejs\node_modules\sails\bin\sails.js' @ function.module._resolvefilename (module.js:336:15) @ function.module._load (module.js:278:25) @ function.module.runmain (module.js:501:10) @ startup (node.js:129:16) @ node.js:814:3 

the solution copy sails.js modules npm directory c:\users\username\appdata\roaming\npm node.js modules directory c:\program files\nodejs\node_modules.

the problem is... want know why sails looking inside node.js modules directory, , why/how correctly set node/sails such issue not have occurred.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -