parallelshell
parallelshell copied to clipboard
ERR_INVALID_ARG_TYPE error for Node v10.5.0
Hello,
I am trying to test parallelshell (package.json at the bottom of this issue for ref) simply running echo commands, but I get the following:
[email protected] echo1echo2 C:\Users\Public\r\b\c > parallelshell "echo 1" "echo 2"
child_process.js:420 throw new ERR_INVALID_ARG_TYPE('options.cwd', 'string', options.cwd); ^
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\Public\repos\Bootstrap4\conFusion\node_modules\parallelshell\index.js:104:17
at Array.forEach (parallelshell "echo 1" "echo 2"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] echo1echo2 script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\username\appdata\Roaming\npm-cache_logs\2018-06-27T08_21_16_022Z-debug.log
The package I have installed in my project folder has the following package.json file:
{ "_from": "parallelshell", "_id": "[email protected]", "_inBundle": false, "_integrity": "sha512-aW73W8tmYiFZtQi41pweV3WWT6o/EvSxAVQHbumOhN53H47OuWQwrRc11xQ2i44GFvR5AjtzhD92r8Kv9X+7Iw==", "_location": "/parallelshell", "_phantomChildren": {}, "_requested": { "type": "tag", "registry": true, "raw": "parallelshell", "name": "parallelshell", "escapedName": "parallelshell", "rawSpec": "", "saveSpec": null, "fetchSpec": "latest" }, "_requiredBy": [ "#DEV:/", "#USER" ], "_resolved": "https://registry.npmjs.org/parallelshell/-/parallelshell-3.0.2.tgz", "_shasum": "fffc55aaa145bdd44b5381cf7fd5e521fc21aa7b", "_spec": "parallelshell", "_where": "C:\Users\Public\repos\Bootstrap4\conFusion", "author": { "name": "DARKGuy", "email": "[email protected]" }, "bin": { "parallelshell": "./index.js" }, "bugs": { "url": "https://github.com/darkguy2008/parallelshell/issues" }, "bundleDependencies": false, "deprecated": false, "description": "Invoke multiple commands, running in parallel", "devDependencies": { "bluebird": "^3.5.0", "chai": "^4.0.2", "coffee-script": "^1.12.6", "mocha": "^3.4.2" }, "homepage": "https://github.com/darkguy2008/parallelshell", "keywords": [ "parallel", "shell" ], "license": "MIT", "main": "index.js", "name": "parallelshell", "repository": { "type": "git", "url": "git+ssh://[email protected]/darkguy2008/parallelshell.git" }, "scripts": { "test": "mocha" }, "version": "3.0.2" }
Thank you so much. Sorry if I was all over the place or something. I'm new to this.
Arian
@arianseyedi think this is related to this issue: https://github.com/darkguy2008/parallelshell/issues/64 which I think is fixed but not released. ping @darkguy2008
Until its released you could change this: https://github.com/darkguy2008/parallelshell/commit/527bf017542fb93dbdcd31de26f701c781c605f2 manually in your node_modules/parallelshell/index.js
hello as said here https://github.com/darkguy2008/parallelshell/issues/57 by @powelmaja : downgrade to 3.0.1 can be another temporary fix until the official one is released to npm (will it be one day ?)
@tfritsch-km I currently switch to concurrently as this repo seems to be unmaintained. There was also some discussion from the old maintainer of parallelshell to merge all this task/parallel script repo's in one see https://github.com/mysticatea/npm-run-all/issues/10 so there is a list of alternatives.
thank you @alexander-schranz for the alternatives, I saw concurrently before installing parallelshell but thought that it was too complex for my needs. That being said, my needs have evolved, and given the inactivity on this repo, I'll give it a try.
Have we got solution for the error of parallelshell??
@abhijithchowdary2 this package is I think not longer maintained as you see last release 2017. I would switch to alternative. As written above I did switch to concurrently which seems still be maintained: https://github.com/kimmobrunfeldt/concurrently
Thank you for the suggestion : )
On Wed, 27 May 2020 at 16:48, Alexander Schranz [email protected] wrote:
@abhijithchowdary2 https://github.com/abhijithchowdary2 this package is I think not longer maintained as you see last release 2017. I would switch to alternative. As written above I did switch to concurrently which seems still be maintained: https://github.com/kimmobrunfeldt/concurrently
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/darkguy2008/parallelshell/issues/67#issuecomment-634594424, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOYW345YBJ33UQV3FIWTNL3RTTZIPANCNFSM4FHFCZZA .