Giter Site home page Giter Site logo

Error: spawn ENOENT about standard HOT 11 CLOSED

standard avatar standard commented on May 11, 2024
Error: spawn ENOENT

from standard.

Comments (11)

Flet avatar Flet commented on May 11, 2024

Hmm, could this be some regression since #4?

from standard.

feross avatar feross commented on May 11, 2024

It's very possible.

On Wed Feb 18 2015 at 9:39:38 PM Dan Flettre [email protected]
wrote:

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


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

from standard.

Flet avatar Flet commented on May 11, 2024

Running node v0.10.26 and [email protected] 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

from standard.

feross avatar feross commented on May 11, 2024

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.

from standard.

naknode avatar naknode commented on May 11, 2024

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'.

from standard.

Flet avatar Flet commented on May 11, 2024

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

from standard.

feross avatar feross commented on May 11, 2024

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

from standard.

feross avatar feross commented on May 11, 2024

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 :)

from standard.

naknode avatar naknode commented on May 11, 2024

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

from standard.

riophae avatar riophae commented on May 11, 2024

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)

from standard.

feross avatar feross commented on May 11, 2024

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.

from standard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.