skip to Main Content

I downloaded node.js from nodejs.org ,today i tried to check my npm version(from cmd prompt /windows power shell/ vs code) but it was giving me same error but when i tried it from node.js cmd prompt it works fine i wanted to resolve error in vs code and cmd

Error shown in vs code

Error shown in cmd

node.js cmd prompt (here it works)

I thought that there may be some problem in path I tried several path but nothing changed

path

2

Answers


  1. Chosen as BEST ANSWER

    I had to install nvm and it solved my problem there may be error because of space in my username


  2. I guess it’s the problem with your path.

    Try deleting this path — C:UserssandeAppDataRoamingnpmnode_modulesnpm

    Also, try restarting your PC.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search