Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

npm start throws exception on Windows #19

Open
andrerpena opened this issue Oct 13, 2015 · 1 comment
Open

npm start throws exception on Windows #19

andrerpena opened this issue Oct 13, 2015 · 1 comment

Comments

@andrerpena
Copy link

I just went into this error while doing npm start on Windows 10 using Node.js 0.12...

    [05:00:11] Finished 'build' after 2.89 µs
        [05:00:11] Starting 'watch-all'...
        [05:00:15] Finished 'watch-all' after 3.71 s
    events.js:85
    throw er; // Unhandled 'error' event
    ^
    Error: spawn unzip ENOENT
    at exports._errnoException (util.js:746:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
    at child_process.js:1144:20
    at process._tickCallback (node.js:355:11)

    npm ERR! Windows_NT 6.3.9600
    npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
    npm ERR! node v0.12.2
    npm ERR! npm  v2.7.4
    npm ERR! code ELIFECYCLE
    npm ERR! [email protected] start: `gulp`
    npm ERR! Exit status 1
@vidbina
Copy link
Contributor

vidbina commented Oct 13, 2015

Hey thanks for pointing that out. From the looks of it gulp-atom uses the unzip command which probably isn't available from your CLI. Installing WinRAR or WinZIP may get you past the unzip problem but isn't the best solution here. A better solution here would be to figure out how to account for all dependencies through the project manifests (package.json, etc) 😄 or otherwise clearly document that you need to install a few extra tools 😞 when running on Windows.

P.S.: I'd rather fix the manifests which may eventually mean submitting a PR for gulp-atom or finding an alternative to gulp-atom. Just glanced at the build procedure for a few apps featured on the Electron.js site, observed the gulp-atom source and am considering that it may be better to find another way to build the apps. Still looking into it.

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

No branches or pull requests

2 participants