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

Error: spawn ENOENT #36

Closed
naknode opened this issue Feb 19, 2015 · 11 comments

Comments

@naknode
Copy link

commented Feb 19, 2015

I am on Windows 7 (64-bit) and did npm install standard -g and tried doing it.

I get this error:

c:\wamp\www\qtsite\src\js (master)
λ standard
Error: spawn ENOENT
    at errnoException (child_process.js:988:11)
    at Process.ChildProcess._handle.onexit (child_process.js:779:34)
@Flet

This comment has been minimized.

Copy link
Member

commented Feb 19, 2015

Hmm, could this be some regression since #4?

@feross

This comment has been minimized.

Copy link
Member

commented Feb 19, 2015

It's very possible.

On Wed Feb 18 2015 at 9:39:38 PM Dan Flettre notifications@github.com
wrote:

Hmm, could this be some regression since #4
#4?


Reply to this email directly or view it on GitHub
#36 (comment).

@Flet

This comment has been minimized.

Copy link
Member

commented Feb 19, 2015

Running node v0.10.26 and npm@1.4.3 on Windows I get the same error above.

Upgrading to the lastest version of node v0.12.0 seems to get around these errors, however a new error is revealed:

Unexpected Linter Output:
Could not find formatter 'C:\Users\flet\AppData\Roaming\npm\node_modules\standard\lib\eslint-reporter-verbose.js'.

It looks like its this eslint bug which has been fixed but not released to npm: eslint/eslint#1818

@naknode what version of node/npm do you have installed?

node -v
npm -v
@feross

This comment has been minimized.

Copy link
Member

commented Feb 19, 2015

We probably lost node 0.10.x support when we switched to the npm run approach of executing eslint and jscs. That change was necessary to ensure we always get the correct path to the binary, even when npm does deduping.

Looks like we'll be all good once eslint does a release.

@naknode

This comment has been minimized.

Copy link
Author

commented Feb 19, 2015

I updated my node to node v0.12.0 and it works :)

c:\wamp\www\qtsite\src\js (master)
λ standard
Error: Use JavaScript Standard Style (https://github.com/feross/standard)
  demo-page.js:2:2: Expected indentation of 2 characters
  main.js:2:4: Expected indentation of 4 characters
  main.js:28:34: Expected no padding newline after opening curly brace
  main.js:43:0: Expected no padding newline before closing curly brace
  main.js:52:2: Expected indentation of 2 characters

Unexpected Linter Output:
Could not find formatter 'C:\Users\Dan\AppData\Roaming\npm\node_modules\standard\lib\eslint-reporter.js'.
@Flet

This comment has been minimized.

Copy link
Member

commented Feb 19, 2015

Excellent, looks like its just waiting for eslint now to get the other half working~

@Flet Flet referenced this issue Feb 20, 2015
Closed
@feross

This comment has been minimized.

Copy link
Member

commented Feb 21, 2015

Going to close this now, as the spawn ENOENT error can be fixed by updating to node 0.12, or better, iojs.

@feross feross closed this Feb 21, 2015

@feross

This comment has been minimized.

Copy link
Member

commented Feb 26, 2015

eslint published 0.15 with the necessary windows fix, and we're pulling that in in standard 2.8.0 now.

@naknode Please update to the latest standard and confirm that that eslint error is gone :)

@naknode

This comment has been minimized.

Copy link
Author

commented Feb 26, 2015

@feross Can confirm it works with no errors. Thanks! Time to use it woo.

@riophae

This comment has been minimized.

Copy link

commented Mar 6, 2015

I'm running iojs v1.4.3 and standard 2.10.0. Got the same error.

D:\Node.js Projects\fanfou-wap-style-enhancer
λ standard
Error: spawn Active code page: 65001
Active code page: 65001
C:\Users\Riophae Lee\AppData\Roaming\NPM\node_modules\standard\node_modules\.bin\jscs.CMD ENOENT
    at exports._errnoException (util.js:734:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1022:32)
    at child_process.js:1114:20
    at process._tickCallback (node.js:350:11)
@feross

This comment has been minimized.

Copy link
Member

commented Mar 6, 2015

I don't have a windows machine to debug this. If a windows user figures this out, please send a PR and we'll merge it.

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
4 participants
You can’t perform that action at this time.