Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 | Error: spawn npm ENOENT #5

Closed
mrmlnc opened this issue Sep 13, 2015 · 1 comment
Closed

Windows 10 | Error: spawn npm ENOENT #5

mrmlnc opened this issue Sep 13, 2015 · 1 comment

Comments

@mrmlnc
Copy link

mrmlnc commented Sep 13, 2015

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
Copy link
Member

Fixed. Just run: $ npm i -gf xo ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants