node.js - Npm install doesn't work on Windows 10 -


i have issue nodejs. i'm trying install ember.js library through command line. when launch "npm install" command log appear:

0 info worked if ends ok 1 verbose cli [ 'c:\program files\nodejs\\node.exe', 1 verbose cli 'c:\program files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'install' ] 2 info using npm@2.11.3 3 info using node@v0.12.7 4 verbose config skipping project config: c:\users\antonio/.npmrc. (matches userconfig) 5 verbose readdependencies loading dependencies c:\users\antonio\package.json 6 error install couldn't read dependencies 7 verbose stack error: enoent, open 'c:\users\antonio\package.json' 7 verbose stack @ error (native) 8 verbose cwd c:\users\antonio 9 error windows_nt 6.3.9600 10 error argv "c:\program files\nodejs\\node.exe" "c:\program files\nodejs\node_modules\npm\bin\npm-cli.js" "install" 11 error node v0.12.7 12 error npm v2.11.3 13 error path c:\users\antonio\package.json 14 error code enopackagejson 15 error errno -4058 16 error package.json enoent, open 'c:\users\antonio\package.json' 16 error package.json not problem npm itself. 16 error package.json npm can't find package.json file in current directory. 17 verbose exit [ -4058, true ]

i've visited npm troubleshooting can't found solution (i tried 3 options nothing happen). say: there yet folder named "npm" in appdata/roaming.

the correct way install ember is:

npm install -g ember-cli ember new my-app 

npm install works if have package.json in directory type it.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -