Following the AngularJS tutorial, getting errors in installation

75 views
Skip to first unread message

Randy Volkart

unread,
May 27, 2015, 4:26:46 PM5/27/15
to ang...@googlegroups.com
Hello,

I'm teaching myself to use Angular and have started with the PhoneCat Tutorial app. Going through the installation first, I have git, I downloaded the angular-phonecat repository, downloaded and installed Node.js (windows  32bit .msi installer), and the next step is where I'm stuck.

Node --version tells me v0.12.4, and npm --version 2.10.1, but the next step is to type npm install which should download the Bower, Http-Server, Karma, and Protractor tools. This generates errors and nothing seems to install. This is the npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ 'D:\\Code\\nodejs\\\\node.exe',
1 verbose cli   'D:\\Code\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install' ]
2 info using n...@2.10.1
3 info using no...@v0.12.4
4 verbose readDependencies loading dependencies from D:\Code\nodejs\package.json
5 error install Couldn't read dependencies
6 verbose stack Error: ENOENT, open 'D:\Code\nodejs\package.json'
6 verbose stack     at Error (native)
7 verbose cwd D:\Code\nodejs
8 error Windows_NT 6.1.7601
9 error argv "D:\\Code\\nodejs\\\\node.exe" "D:\\Code\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
10 error node v0.12.4
11 error npm  v2.10.1
12 error path D:\Code\nodejs\package.json
13 error code ENOPACKAGEJSON
14 error errno -4058
15 error package.json ENOENT, open 'D:\Code\nodejs\package.json'
15 error package.json This is most likely not a problem with npm itself.
15 error package.json npm can't find a package.json file in your current directory.
16 verbose exit [ -4058, true ]

Anyone that can help me with this?

Thanks

Randy

Daniel Quinn

unread,
May 28, 2015, 8:03:42 AM5/28/15
to ang...@googlegroups.com
Its hard to tell with the limited context, but it looks like you're running npm install in the wrong directory(D:\Code\nodejs). You should be running npm install where you cloned the angular-phonecat repo.

Randy Volkart

unread,
May 28, 2015, 9:21:46 PM5/28/15
to ang...@googlegroups.com
Ah yes that is correct, clumsy me. I must have gotten distracted between steps, I see now from the previous section "The tutorial instructions, from now on, assume you are running all commands from the angular-phonecat directory.".

Thanks!
Reply all
Reply to author
Forward
0 new messages