详细堆栈错误:生成C:\ Program Files \ nodejs \ node.exe

时间:2018-11-08 13:16:47

标签: node.js npm

当我使用npm -v时,发生以下错误:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\npm_global_modules\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'config',
1 verbose cli   'set',
1 verbose cli   'cache=C:\\Program Files\\nodejs\\npm_cache' ]
**<br/>2 info using npm@6.4.1<br/>
3 info using node@v10.13.0**<br/>
4 verbose config Skipping project config: C:\Users\Administrator/.npmrc. (matches userconfig)<br/>
5 info config set "cache" "C:\\Program Files\\nodejs\\npm_cache"<br/>
6 verbose stack Error: spawn C:\Program Files\nodejs\node.exe ENOENT<br/>
6 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
6 verbose stack     at onErrorNT (internal/child_process.js:407:16)
6 verbose stack     at process._tickCallback (internal/process/next_tick.js:63:19)
7 verbose cwd C:\Users\Administrator<br/>
8 verbose Windows_NT 10.0.16299<br/>
9 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\npm_global_modules\\node_modules\\npm\\bin\\npm-cli.js" "config" "set" "cache=C:\\Program Files\\nodejs\\npm_cache"<br/>
10 verbose node v10.13.0<br/>
11 verbose npm  v6.4.1<br/>
12 error path C:\Program Files\nodejs\node.exe<br/>
13 error code ENOENT<br/>
14 error errno ENOENT<br/>
15 error syscall spawn C:\Program Files\nodejs\node.exe<br/>
16 error enoent spawn C:\Program Files\nodejs\node.exe ENOENT<br/>
17 error enoent This is related to npm not being able to find a file.<br/>
18 verbose exit [ 1, true ]<br/>

0 个答案:

没有答案