-
Notifications
You must be signed in to change notification settings - Fork 325
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
npm run serve fails #22
Comments
Did you |
So the issue is that |
this looks like an issue you might want to file with pouchdb, this kind of error is not so weird to run into in windows land :( |
So here is the executable for pouchdb-server, and here is how we declare it as a "bin" executable in the package.json. This is the way you do it, right? Is there something wrong with the shebang? Or maybe on Windows, the "bin"s go in a different directory. An alternative solution is to add a new npm script that just runs |
I'll be switching to Mac for my home setup next couple of weeks so its not a huge deal but I'd be interested if other windows users are experiencing the same issue. Will play about with it next week. |
On your Windows machine, can you try |
Did a
|
^ My guess is it's an issue with the CWD then; can you update to master and try again? |
Get the following:
|
Ahhh, I see what it is. It's because Windows uses |
AFAIK windows is / agnostic, it will work either way, I went and manually changed my dev-server.js to point to the path directly and it still failed. I am lost now, it must be a permissions thing.
|
Okay I got it, If I reference Although now I get a bunch of SyntaxErrors to do with
|
I'm running into this a year later. I'm running Windows 10, Node v6.9.1, npm v4.0.1. npm run serve
> [email protected] serve C:\Sites\pokedex.org
> babel-node bin/dev-server.js
events.js:160
throw er; // Unhandled 'error' event
^
Error: spawn C:\Sites\pokedex.org\node_modules\pouchdb-server\bin\pouchdb-server ENOENT
at exports._errnoException (util.js:1026:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickDomainCallback (internal/process/next_tick.js:122:9)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\mrausch\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve"
npm ERR! node v6.9.1
npm ERR! npm v4.0.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] serve: `babel-node bin/dev-server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] serve script 'babel-node bin/dev-server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pokedex package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! babel-node bin/dev-server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs pokedex
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pokedex
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Sites\pokedex.org\npm-debug.log I'd love to jump in and help fix this, but Pokedex has changed a lot since this ticket was filed. Does anyone have a sense of what the current state of this issue is? |
This appears to be a Windows issue, which is a bit embarrassing because I work for Microsoft now. 😅 Most likely I just need to test the script on Windows and tweak it to handle Windows filepaths correctly. Alternatively, are you sure that PouchDB Server installed correctly? You may need to run |
@nolanlawson I installed the |
Tried running on Win 10 and fails: npm-debug.log 10 verbose lifecycle [email protected] Console log:
G:\Node Projects\pokedex.org-master\bin\dev-server.js:91 SyntaxError: Unexpected token ... npm ERR! Windows_NT 10.0.14393 npm ERR! Please include the following file with any support request: |
Also have the same logs, in Win10:
events.js:160 Error: spawn C:\Users\Marcus\Desktop\ReactProjects\pokedex.org\node_modules\pouchdb-server\bin\pouchdb-server ENOENT npm ERR! A complete log of this run can be found in: |
On windows 10, latest node. Running
npm run serve
, also tried runningnpm run serve
afternpm install
The text was updated successfully, but these errors were encountered: