I am stuck with npm commands. I am using webstorm and when I run any command like npm install I a getting an error. I have tried researching on what can be done but nothing I have tried so far seems to work. should I create a file called npmlog. if so what should its extension be and what should be the path.
C:\workspace\Main_Dev>npm install
module.js:339
throw err;
^
Error: Cannot find module 'npmlog'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at C:\Users\user1\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:18:11
at Object.<anonymous> (C:\Users\user1\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:75:3)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
please help me. thanks.