Comments (9)
orrr I could be way off and it was trying to call the command as 'npm
instead of npm
:)
Still not sure if maybe it's a windows thing? Changed my package.json to this:
`"start": "parallelshell \"npm run watch:browser-sync\" \"npm run watch:sass\"",
and it seems to now call the tasks, but browser-sync doesn't seem to be working now dammit.
from parallelshell.
Wondering if it's related to this?
nodejs/node-v0.x-archive#2318
In this issue on grunt, they recommend using node-which
gruntjs/grunt#155
https://github.com/isaacs/node-which/
from parallelshell.
Hmm, that's irritating. Thanks for the issue @jlbruno. Looks like https://github.com/keithamus/parallelshell/blob/master/index.js#L14 needs to change from exec(childCmd
to exec(isWin ? 'cmd' : 'sh'...
. Or perhaps just depend on https://github.com/IndigoUnited/node-cross-spawn.
If you'd like to @jlbruno, a PR would be very much welcome. Otherwise I'll work on this over the weekend.
from parallelshell.
Ahh, interesting. I made the assumption single quotes would work in the Windows command line. Silly me.
I'll close this one for now then. If you want some help with npm scripts in general, I'm hanging out in https://gitter.im/keithamus/npm-run-scripts and can help
from parallelshell.
I just ran into this same issue and switching from single to double quotes solved it for me on Windows. Lots of other issues with watch libraries like onchange and their handling of using child_process.spawn
to run npm
, but that's outside the scope of parallelshell. :)
from parallelshell.
Do the double quotes work on mac as well? If so, I'd be happy to send a PR to update the readme file with double instead of single quotes, but I have no mac to test on.
from parallelshell.
Double quotes do indeed work on Mac! :)
from parallelshell.
@jlbruno please feel free to send a PR updating to double quotes. They will work in bash, but it should be noted that they are interpreted for variables and globs (e.g. "*"
is expanded before being passed, while '*'
isn't).
from parallelshell.
I'll just stick to using double quotes whenever I'm working in a scripting environment on Windows!
from parallelshell.
Related Issues (20)
- Why BrowserSync over Webpack-dev-server? HOT 1
- Issue with assigning variables HOT 5
- Feature request: Prefix output with (colored?) indicator of which process it came from HOT 1
- Suggestions for why parallelshell breaks node-notifier?
- Some output goes to the wrong terminal tab with two tabs open HOT 4
- Same argument passed to all shells? HOT 1
- Exit code is 0 when first command succeeds and second fails HOT 4
- fails on node8 HOT 3
- child_process throwing error ('"cwd" must be a string') HOT 24
- /usr/bin/env: βnode\rβ: No such file or directory ... HOT 9
- Allow 3.0 to be backwards compatible with < Node 8 HOT 6
- TypeError: "cwd" must be a string HOT 3
- New release? HOT 5
- Node 10.x version check fails HOT 9
- child_process throwing error ('"cwd" must be a string') HOT 2
- ERR_INVALID_ARG_TYPE error for Node v10.5.0 HOT 7
- The "options.cwd" property must be of type string. Received type function HOT 36
- Please do a release with the version check fork! HOT 7
- The "options.cwd" property must be of type string. Received type function HOT 1
- npm ERR! code ELIFECYCLE HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parallelshell.