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 Command failed with exit code 1. On Windows 10 When run " yarn start " any idea? #7

Closed
dukenst2006 opened this issue Feb 7, 2017 · 19 comments

Comments

@dukenst2006
Copy link

λ yarn start
yarn start v0.18.1
$ webpack-dashboard -c magenta -t 'Vue.js Starter Template' -- webpack-dev-server --config webpack/development.js --progress
Error: spawn Starter ENOENT
at notFoundError (C:\Users\Dukens\Documents\projects\vue\node_modules\webpack-dashboard\node_modules\cross-spawn\lib\enoent.js:11:11)
at verifyENOENT (C:\Users\Dukens\Documents\projects\vue\node_modules\webpack-dashboard\node_modules\cross-spawn\lib\enoent.js:46:16)
at ChildProcess.cp.emit (C:\Users\Dukens\Documents\projects\vue\node_modules\webpack-dashboard\node_modules\cross-spawn\lib\enoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
internal/process.js:172
throw errnoException(err, 'kill');
^

Error: kill ESRCH
at exports._errnoException (util.js:1036:11)
at process.kill (internal/process.js:172:13)
at process. (C:\Users\Dukens\Documents\projects\vue\node_modules\webpack-dashboard\bin\webpack-dashboard.js:70:11)
at emitOne (events.js:101:20)
at process.emit (events.js:188:7)
at process.exit (internal/process.js:146:15)
at Immediate. (C:\Users\Dukens\Documents\projects\vue\node_modules\blessed\lib\widgets\screen.js:221:15)
at runCallback (timers.js:574:20)
at tryOnImmediate (timers.js:554:5)
at processImmediate [as _immediateCallback] (timers.js:533:5)
error Command failed with exit code 1.

@villeristi
Copy link
Owner

Hmmm, try to run (from project root): rm -rf node_modules && yarn cache clean && yarn and after that try to run the start again.

@dukenst2006
Copy link
Author

Thanks for answering @villeristi, unfortinately it's not work but when yarn fetch the packages, it give me those warnings ( fsevents compatible only with Mac OS, May be the problem is there ) :
warning fsevents@1.0.17: The platform "win32" is incompatible with this module.
info "fsevents@1.0.17" is an optional dependency and failed compatibility check. Excluding it from.
warning Incorrect peer dependency "eslint-plugin-import@^1.16.0".

@tmcmah1
Copy link

tmcmah1 commented Feb 10, 2017

Unfortunately I'm getting the same thing with a freshly cloned repo. Using yarn 0.19.1 on Windows 7. I ran yarn cache clean followed by yarn, but still got the same errors when running yarn start:

yarn start v0.19.1
$ webpack-dashboard -c magenta -t 'Vue.js Starter Template' -- webpack-dev-server --config webpack/development.js --progress
Error: spawn Starter ENOENT
...

@wit3
Copy link

wit3 commented Feb 13, 2017

any solution ? 🐛

@tmcmah1
Copy link

tmcmah1 commented Feb 20, 2017

I believe the problem might be that webpack-validator does not (and has no plans to) support Webpack v2.
js-dxtools/webpack-validator#105

I tried removing webpack-validator, but unfortunately was still not able to make this starter template work.

@villeristi
Copy link
Owner

villeristi commented Feb 21, 2017

Hi all, unfortunately haven't had any time digging in to this. But the error is not due to webpack-validator as it's not run on start and does not prevent the startup.

@dylinmaust
Copy link

dylinmaust commented Feb 21, 2017

Windows has an issue with the spawn command which is resolved using cross-spawn. Webpack-dashboard has a dependency on cross-spawn, and that's where the error is originating from (FormidableLabs/webpack-dashboard#83). I've tried updating webpack-dashboard to the latest, but it hasn't resolved the issue for me. My Node version is out of date too.. trying that next.

@dylinmaust
Copy link

You can currently work around the issue by not using webpack-dashboard, just replace yarn start command with webpack-dev-server --config webpack/development.js.

@ghost
Copy link

ghost commented Feb 24, 2017

I was able to get it to work by removing the spaces from the -t parameter in the start script defined in package.json,
i.e.

"start": "webpack-dashboard -c magenta -t 'Vue.jsStarterTemplate' -- webpack-dev-server --config webpack/development.js --progress",

villeristi pushed a commit that referenced this issue Mar 13, 2017
* release/0.9.1:
  Update Vue-depency to `2.2.2`. Fixes #12 & reported by @shiya.
  Add Babel-options to package.json. Fixes #10 & reported by @painhardcore.
  Remove Webpack-validator as redundand. Closes #9.
  Remove spaces from quoted webpack-dashboard title to actually make the start-script work on Windows. Fixes #7 & reported by @bfhobbes.
@baixiaomei
Copy link

error Command failed with exit code 1.

@villeristi
Copy link
Owner

Which command?
Which environment?
Which node-version?
The full error-msg?

@villeristi villeristi reopened this Sep 22, 2017
@crathor
Copy link

crathor commented Dec 30, 2017

yarn add webpack - solved this issue for me :)

@ereztdev
Copy link

I'm on win10, same issue, same error.
Everything was working fine, I got the error after installing a package for react (Formik).
I solved it with:
yarn cache clean
yarn
and then yarn start

@SageSanyue
Copy link

SageSanyue commented Jul 6, 2018

windows7 "yarn start" error, then I "yarn"(may it error also,but it doesnot matter), then "yarn start", it works!

@jakkoumodev
Copy link

@ereztdev
thank you
I solved it with:
yarn cache clean
yarn
and then yarn start

@Kaaviya-Nakkeeran
Copy link

Try
yarn
and yarn start

that will work

@tomsshow
Copy link

Hi! Working on a different project but I ran across a similar error in windows. What helped me was changing the single quote ' in the package.json script into a \".

for example: 'xyz' would become \"xyz\"

Hope it helps!

@ajayvarma1
Copy link

Hello guys ,

My operating system is Windows 10 .
I also face issue . Have any solution

Error :
==========================>

Command failed with exit code 1 (Unknown system error -1): yarnpkg

Error: Command failed with exit code 1 (Unknown system error -1): yarnpkg

  • error.js:58 makeError
    [npm]/[gatsby-cli]/[execa]/lib/error.js:58:11

  • index.js:112 handlePromise
    [npm]/[gatsby-cli]/[execa]/index.js:112:26

  • next_tick.js:68 process._tickCallback
    internal/process/next_tick.js:68:7

@aramachandran7
Copy link

Hello guys ,
My operating system is Windows 10 .
I also face issue . Have any solution
Error :
==========================>
Command failed with exit code 1 (Unknown system error -1): yarnpkg
Error: Command failed with exit code 1 (Unknown system error -1): yarnpkg

error.js:58 makeError
[npm]/[gatsby-cli]/[execa]/lib/error.js:58:11

index.js:112 handlePromise
[npm]/[gatsby-cli]/[execa]/index.js:112:26

next_tick.js:68 process._tickCallback
internal/process/next_tick.js:68:7

Hey dude you don't have gatsby setup for windows properly -
try this.
worked for me.
https://www.gatsbyjs.org/docs/gatsby-on-windows/

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