Richard Bretton
Richard Bretton

Reputation: 51

npm problems with windows

I've looked through the different articles here, but I'm not finding out the answer I need, or don't understand necessarily what has been explained in other posts.

I downloaded node.js got my github up and have cloned the phonecat site, that part works fine. I can even check npm/node versions through cmd, but whenever I install using either "npm install" or "npm install -g" "Couldn't read depndencies" couldn't find package.json" has a long list of errors:

http://tinypic.com/1r54rjf4

I have tried caching, updating, restarting, uninstalling, reinstalling, giving permissions to fully allow windows system32 for commands. I have been reading for a few hours, and I am just at a complete loss here. Any help would be greatly appreciated!

Upvotes: 1

Views: 274

Answers (3)

Taqi Raza Khan
Taqi Raza Khan

Reputation: 684

i think you need to run your VSCode or any other program in Administrator Mode.

Upvotes: 0

Richard Bretton
Richard Bretton

Reputation: 51

I didn't. I'm still wrestling with it. I'm not sure what to do about it either. I had one of my friends come over that's familiar with node and he couldn't figure it out. It must be a permissions issue somewhere on the computer. I can't figure out what else it could be.

Upvotes: 0

Brennan
Brennan

Reputation: 1785

When you don't specify a module to download, npm will look for a package.json. It's not finding one, which is why you're seeing all kinds of errors.

Is there a project you're working on? If you want to start a new one you can run npm init. If there's an existing one that has a package.json, you can navigate to that directory in your terminal and then npm install should work.

Upvotes: 1

Related Questions