Skip to content

Can't run npm commands on windows #217

Closed
@cjblomqvist

Description

@cjblomqvist

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

I get this:

> [email protected] 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions