Giter Site home page Giter Site logo

Comments (24)

powelmaja avatar powelmaja commented on September 3, 2024 17

@zeratax I had the same for node 10.x. Downgrade of parallelshell to 3.0.1 helped for me.

from parallelshell.

zeratax avatar zeratax commented on September 3, 2024 9

it seems like this is an issue again with node 10.1.0

$ parallelshell "echo 1" "echo 2" 
child_process.js:413
    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:413:11)
    at spawn (child_process.js:515:38)
    at /home/user/.nvm/versions/node/v10.1.0/lib/node_modules/parallelshell/index.js:104:17
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/user/.nvm/versions/node/v10.1.0/lib/node_modules/parallelshell/index.js:100:6)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Module.load (internal/modules/cjs/loader.js:589:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
    at Function.Module._load (internal/modules/cjs/loader.js:520:3)
$ node --version
v10.1.0

from parallelshell.

burns-brian avatar burns-brian commented on September 3, 2024 8

I had the same issue, and @zeratax is correct. "Downgrade of parallelshell to 3.0.1" is the workaround. The problem is with 3.0.2.

from parallelshell.

darkguy2008 avatar darkguy2008 commented on September 3, 2024 6

Awesome! Thanks a lot :) I'll take good care of it :D Sure, my npm username is the same one as here, darkguy2008. I needed to use it on a project so I made a package (parallelshell-v8) using my branch, I'll delete it now that I have access here and apply the fixes in your repo. Thanks again! πŸ‘ I'll do it when I'm back home, as I'm at work atm.

from parallelshell.

PierBover avatar PierBover commented on September 3, 2024 3

I moved to npm-run-all and it didn't require me to install anything globally.

from parallelshell.

PierBover avatar PierBover commented on September 3, 2024 3

To run scripts in parallel:
run-p some-npm-script some-other-npm-script

from parallelshell.

darkguy2008 avatar darkguy2008 commented on September 3, 2024 2

This has been fixed :). Closing issue!

screen shot 2017-06-12 at 7 56 02 pm

from parallelshell.

maoberlehner avatar maoberlehner commented on September 3, 2024 2

Thx for fixing this. Please do not forget to publish a new release on npm. thx :)

from parallelshell.

pm0u avatar pm0u commented on September 3, 2024 2

Can this be re-opened? Still happening to me, node 14.16.0 -- downgrading to 3.0.1 fixed

from parallelshell.

keithamus avatar keithamus commented on September 3, 2024 1

@darkguy2008 if you'd like I'd be happy to give you the commit bit for this repo, which would allow you to publish the fix for the canonical parallelshell npm package.

from parallelshell.

keithamus avatar keithamus commented on September 3, 2024 1

@darkguy2008 you've been invited πŸ˜„. Feel free to manage the repo how you want! I'll give you publish rights on npm also if you give me your npm username.

from parallelshell.

maoberlehner avatar maoberlehner commented on September 3, 2024 1

@darkguy2008 working long hours, huh? ;)

Would be cool if this gets fixed in the not so distant future. Let me know if I can help.

from parallelshell.

jydoskey avatar jydoskey commented on September 3, 2024 1

thanks @powelmaja this issue is with parallelshell 3.0.2, had to downgrade to 3.0.1 and its working perfectly well

from parallelshell.

tKartik avatar tKartik commented on September 3, 2024 1

@zeratax I had the same for node 10.x. Downgrade of parallelshell to 3.0.1 helped for me.

Thankyou so much for this!

from parallelshell.

evolutionxbox avatar evolutionxbox commented on September 3, 2024

Also using node 8.0.0 and npm 5.0.0

I've tried reinstalling parallelshell, but am met with another error

node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz

Are they related?

from parallelshell.

PierBover avatar PierBover commented on September 3, 2024

Same here... using Node 8 and NPM 5.0.1

from parallelshell.

darkguy2008 avatar darkguy2008 commented on September 3, 2024

I've fixed it and made my own fork here: https://github.com/darkguy2008/parallelshell, I've also updated all the package.json libraries and made it work with latest mocha.

Unfortunately I have no idea how to push this to npm... and npm-run-all doesn't cut it, I like paralleshell as it doesn't need me to install something globally, and it works pretty well... it just needed some small fixes for Node 8.0. I'd rather use and maintain something that just works...

from parallelshell.

darkguy2008 avatar darkguy2008 commented on September 3, 2024

Yeah but the syntax and all looks different, and the documentation doesn't help me to understand how to use it (or how to migrate from parallelshell), so I'd rather use my own fixed version :/

from parallelshell.

darkguy2008 avatar darkguy2008 commented on September 3, 2024

Well, that worked! the documentation for npm-run-all was really confusing, your example was very clear and concise. Thanks!. Ah well, I still fixed the error in parallelshell haha, in case anyone is interested I'll keep the github repo :)

from parallelshell.

darkguy2008 avatar darkguy2008 commented on September 3, 2024

@keithamus Hello Keith, oh really? :O that would be awesome! I could also submit a PR if you wish. In any case, I'd be really happy to help :) let me know what do you prefer so I can prepare the files with the fix πŸ‘

from parallelshell.

darkguy2008 avatar darkguy2008 commented on September 3, 2024

@maoberlehner Hello! Kind of haha, I had some very busy days lately, however, don't worry, I'm kinda free today so I'll do it in the upcoming hours - stay tuned :D !

from parallelshell.

darkguy2008 avatar darkguy2008 commented on September 3, 2024

@maoberlehner you're welcome! I've just published a new version of the package :)

from parallelshell.

jimmynotjim avatar jimmynotjim commented on September 3, 2024

Thanks for this fix, I came here for the same issue.

Could you add the release on GitHub so it's clear v2.0.0 isn't the latest if you arrive here instead of the NPM listing. Thanks.

from parallelshell.

mametur avatar mametur commented on September 3, 2024

https://stackoverflow.com/questions/53461626/problem-running-parallelshell-nodejs-script

this one works for me

from parallelshell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.