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

Can't run npm commands on windows #217

Closed
cjblomqvist opened this issue Jun 8, 2016 · 3 comments
Closed

Can't run npm commands on windows #217

cjblomqvist opened this issue Jun 8, 2016 · 3 comments

Comments

@cjblomqvist
Copy link

When running this:
PS C:\Code\angularfire2> npm test

I get this:

> angularfire2@2.0.0-beta.0 test C:\Code\angularfire2
> npm run build; karma start

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build;" "karma" "start"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9

npm ERR! missing script: build;
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Code\angularfire2\npm-debug.log
npm ERR! Test failed.  See above for more details.

Which is due to the fact that ; is not valid in windows. It'd be nice to make dev scripts more cross platform compatible so that one can develop more easily on windows too.

In addition to using ;, there are a bunch of other POSIX specific commands (rm/cp) which seems to be causing issues.

@davideast
Copy link
Member

Can you try this with the latest release? @cjblomqvist

@davideast
Copy link
Member

Closing due to inactivity, but feel free to respond if you still have this issue.

@fabien0102
Copy link
Contributor

fabien0102 commented Oct 7, 2016

Same fact

$ npm test                                                                                                                                            

> angularfire2@2.0.0-beta.5 test d:\Projets\angularfire2                                                                                              
> npm run build; karma start --single-run                                                                                                             

npm ERR! Windows_NT 10.0.14393                                                                                                                        
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build;" "karma" "start" "--
single-run"                                                                                                                                           
npm ERR! node v4.5.0                                                                                                                                  
npm ERR! npm  v3.10.6                                                                                                                                 

npm ERR! missing script: build;                                                                                                                       
npm ERR!                                                                                                                                              
npm ERR! If you need help, you may report this error at:                                                                                              
npm ERR!     <https://github.com/npm/npm/issues>                                                                                                      

npm ERR! Please include the following file with any support request:                                                                                  
npm ERR!     d:\Projets\angularfire2\npm-debug.log                                                                                                    
npm ERR! Test failed.  See above for more details.     

And I confirm, it’s the ;, just replace with && (and for my case switch to node 6.4.0) and tests are running.

katowulf pushed a commit that referenced this issue Oct 20, 2016
Single quotes and semicolons don't work as expected on windows.

Closes #217
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

3 participants