How do you correctly use parallelshell with npm scripts? : <p>I am trying to use parallelshell with my node project on Windows to run two processes at the same time.</p>

<p>Here is the scripts section of my package.json file:</p>

<pre><code>"scripts": {
"start": "npm run watch:all",
"test": "echo \"Error: no test specified\" &amp;&amp; exit 1",
"lite": "lite-server",
"scss": "node-sass -o css/ css/",
"watch:scss": "onchange \"css/*.scss\" -- npm run scss",
"watch:all": "parallelshell \"npm run watch:scss\" \"npm run lite\""
</code></pre>

<p>}</p>

<p>When I run the command <code>npm start</code> I get this error log:</p>

<pre><code>TypeError [ERR_INVALID_ARG_TYPE]: The "options.cwd" property must be of type string. Received type function
at normalizeSpawnArguments (child_process.js:420:11)
at spawn (child_process.js:522:38)
at C:\Users\Daniel\Documents\development\online_classes\coursera_uhk_web_dev\Bootstrap4\conFusion\node_modules\parallelshell\index.js:104:17
at Array.forEach (&lt;anonymous&gt;)
at Object.&lt;anonymous&gt; (C:\Users\Daniel\Documents\development\online_classes\coursera_uhk_web_dev\Bootstrap4\conFusion\node_modules\parallelshell\index.js:100:6)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! confusion@1.0.0 watch:all: `parallelshell "npm run watch:scss" "npm run lite"`

npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the confusion@1.0.0 watch:all script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
</code></pre>

<p>Is there something wrong with my syntax? I can run the commands <code>npm run watch:scss</code> and <code>npm run lite</code> individually and they work fine, but I am not able to run the parallelshell command.</p>

<p>Thank you!</p>
