Windows 10 | Error: spawn npm ENOENT
mrmlnc opened this issue · 1 comments
mrmlnc commented
Steps to reproduce:
npm i -g xo
- cd to project directory
xo --init --space --esnext --env=node
Node: v4.0.0
NPM: 2.14.2
Error:
Error: spawn npm ENOENT
at exports._errnoException (util.js:837:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:429:9)
at process._tickCallback (node.js:343:17)
at Function.Module.runMain (module.js:477:11)
at startup (node.js:117:18)
at node.js:951:3
In the package.json
all rules are added, except for the xo
in the dependencies section (logically expect ▪️).
sindresorhus commented
Fixed. Just run: $ npm i -gf xo
;)