Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js nodeJS怎么了?它';s在卸载和重新安装时引发错误_Node.js_Npm - Fatal编程技术网

Node.js nodeJS怎么了?它';s在卸载和重新安装时引发错误

Node.js nodeJS怎么了?它';s在卸载和重新安装时引发错误,node.js,npm,Node.js,Npm,现在,每当我尝试运行任何npm命令时,都会发生这种情况 internal/modules/cjs/loader.js:968 throw err; ^ Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js' at Function.Module._resolveFilename (internal/modules/cjs/lo

现在,每当我尝试运行任何npm命令时,都会发生这种情况

internal/modules/cjs/loader.js:968
  throw err;
  ^

Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
internal/modules/cjs/loader.js:968
  throw err;
  ^

您是否尝试过运行
npm安装
?此问题在中之前已回答。您是否尝试过运行
npm安装
?此问题在中之前已回答