In step 2 of this tutorial running the Karma tests fail (actuall npm does an install which fails, so can't run the tests).
C:\angular\tutorials\angularsitetutorial\angular-phonecat>npm test > [email protected] pretest C:\angular\tutorials\angularsitetutorial\angular-phonecat > npm install npm ERR! install Couldn't read dependencies npm ERR! package.json ENOENT, open 'C:\package.json' npm ERR! package.json This is most likely not a problem with npm itself. npm ERR! package.json npm can't find a package.json file in your current directory. npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! cwd C:\ npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.28 npm ERR! path C:\package.json npm ERR! code ENOPACKAGEJSON npm ERR! errno 34 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\npm-debug.log npm ERR! not ok code 0 npm ERR! Test failed. See above for more details. npm ERR! not ok code 0 On Wednesday, January 7, 2015 at 7:43:34 PM UTC-8, Greg Lafrance wrote: > > So I'm trying to get started with angularjs, but it seems no matter what > tutorial I try to use, the setup section fails at some point, with > something like the following. > > I've searched but I just can't seem to get beyond these errors. > > I'm using windows. > > Just want to get started, but getting seriously tripped up. > > npm ERR! install Couldn't read dependencies > npm ERR! package.json ENOENT, open 'C:\package.json' > npm ERR! package.json This is most likely not a problem with npm itself. > npm ERR! package.json npm can't find a package.json file in your current > directory. > > npm ERR! System Windows_NT 6.2.9200 > npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program > Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" > npm ERR! cwd C:\ > npm ERR! node -v v0.10.35 > npm ERR! npm -v 1.4.28 > npm ERR! path C:\package.json > npm ERR! code ENOPACKAGEJSON > npm ERR! errno 34 > npm ERR! Error: EPERM, open 'C:\npm-debug.log' > npm ERR! { [Error: EPERM, open 'C:\npm-debug.log'] errno: 50, code: > 'EPERM', path: 'C:\\npm-debug.log' } > npm ERR! > npm ERR! Please try running this command again as root/Administrator. > > npm ERR! System Windows_NT 6.2.9200 > npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program > Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" > npm ERR! cwd C:\ > npm ERR! node -v v0.10.35 > npm ERR! npm -v 1.4.28 > npm ERR! path C:\npm-debug.log > npm ERR! code EPERM > npm ERR! errno 50 > npm ERR! stack Error: EPERM, open 'C:\npm-debug.log' > npm ERR! > npm ERR! Additional logging details can be found in: > npm ERR! C:\npm-debug.log > npm ERR! not ok code 0 > > npm ERR! [email protected] prestart: `npm install` > npm ERR! Exit status 34 > npm ERR! > npm ERR! Failed at the [email protected] prestart script. > npm ERR! This is most likely a problem with the angular-phonecat package, > npm ERR! not with npm itself. > npm ERR! Tell the author that this fails on your system: > npm ERR! npm install > npm ERR! You can get their info via: > npm ERR! npm owner ls angular-phonecat > npm ERR! There is likely additional logging output above. > npm ERR! System Windows_NT 6.2.9200 > npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program > Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" > npm ERR! cwd C:\angular\tutorials\angularsitetutorial\angular-phonecat > npm ERR! node -v v0.10.35 > npm ERR! npm -v 1.4.28 > npm ERR! code ELIFECYCLE > npm ERR! > npm ERR! Additional logging details can be found in: > npm ERR! > C:\angular\tutorials\angularsitetutorial\angular-phonecat\npm-debug.log > npm ERR! not ok code 0 > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
