我刚刚在我的 Windows 10 计算机上安装了nodejs x64 。我保留所有默认配置,打开 cmd 并输入:
npm -v
然后我收到以下错误:
module.js:457
throw err;
^
Error: Cannot find module 'umask'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\W10-PRO\AppData\Roaming\npm\node_module\npm\lib\utils\umask.js:1:75)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
每个以“npm”开头的命令都会创建此错误,并且 npm 无法卸载、更新自身)请帮我修复此错误?