Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "options.cwd" property must be of type string. Received type function #69

Closed
FelixMH opened this issue Nov 6, 2018 · 36 comments
Closed

Comments

@FelixMH
Copy link

FelixMH commented Nov 6, 2018

I have node 11.0.0 and I have this issue when I use yarn start because a internal command by parallelshell isn't work. I've been use npm-run-all and I've been use the last version of parallelshell and the issue is continue.

the complete error is :

**
child_process.js:417
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:417:11)
at spawn (child_process.js:532:38)
**

can anybody help me please ?

@edrcq
Copy link
Contributor

edrcq commented Nov 6, 2018

@FelixMH I hope the PR can help you, dont hesitate to check the commits

-> 8d9df71

darkguy2008 added a commit that referenced this issue Nov 7, 2018
fix version checker (issue #69)
@FelixMH
Copy link
Author

FelixMH commented Nov 9, 2018

@FelixMH I hope the PR can help you, dont hesitate to check the commits

-> 8d9df71

Thank you for your comment, I need to solve this, but I am still in the same at the begin of this Open issue, I need help.

@edrcq
Copy link
Contributor

edrcq commented Nov 9, 2018

Take the content of the file here :
https://raw.githubusercontent.com/darkguy2008/parallelshell/master/index.js

And put the content in your /project/node_modules/parallelshell/index.js

It will works in waiting the next release of the module

@FelixMH
Copy link
Author

FelixMH commented Nov 10, 2018

You mean that I need to replace the content or just paste it in the file before mencionated?

@edrcq
Copy link
Contributor

edrcq commented Nov 13, 2018

You take the content of this : (100% copy)
https://raw.githubusercontent.com/darkguy2008/parallelshell/master/index.js

And put in your /project/node_modules/parallelshell/index.js
(100% paste)

It will works

@FelixMH

@FelixMH
Copy link
Author

FelixMH commented Nov 20, 2018

Hi, thanks for the answer.
now, in this moment I was try put the pasted code and that it works 100% I don't know if then will works fine but in this moment with node 10.0.0 works fine.

thanks a lot for the answer.

@FelixMH FelixMH closed this as completed Nov 20, 2018
@juanprog97
Copy link

thanks men, works 100%

@armherr
Copy link

armherr commented Mar 9, 2019

@edrcq

Thank you very much :)

@HalfMandu
Copy link

@edrcq it worked, thanks

@vinayakkuradia
Copy link

Thanks a lot buddy!!! : )

@rolisanchez
Copy link

Thanks!!

@mhers91
Copy link

mhers91 commented Aug 2, 2019

Thank you! this worked perfectly.

@RichardBradley
Copy link

RichardBradley commented Aug 7, 2019

If anyone else stumbles on this and wants a workaround that doesn't involve locally modifying the node_modules dir, you can do:

npm i darkguy2008/parallelshell#8fd83e2 

until a new version is released which includes this fix.

(EDITED to fix typo in the npm command above; thanks @ManuelOviedo)

@ManuelOviedo
Copy link

npm -i darkguy2008/parallelshell#8fd83e2

its "npm i ..." (without the dash)

@Melmoth-the-Wanderer
Copy link

Is this going to be fixed/released anytime soon? It's been for almost a yea already and I came across the bug on very first approach to this package.

1j01 added a commit to 1j01/jspaint that referenced this issue Nov 3, 2019
- Swap `http-server` for `serve` to fix an issue http-party/http-server#525 (could downgrade instead alternatively)
- Swap `parallelshell` for `npm-run-all` to fix an issue darkguy2008/parallelshell#69 (could downgrade instead alternatively)
- Switch from firefox (slimerjs) to the default (phantomjs) because my version of firefox is too new now
- This gets tests running, sorta, but not working.
adamrutter added a commit to adamrutter/hugo-boilerplate that referenced this issue Nov 9, 2019
adamrutter added a commit to adamrutter/hugo-boilerplate that referenced this issue Nov 9, 2019
@nathan815
Copy link

@FelixMH This issue should be reopened. It is not fixed.

@darkguy2008 Is this going to be released?

@saurav1423
Copy link

@nathan815 don't try to translate in English, just copy whatever it is and paste it at the told location. It will work 100%.

@Youvelop
Copy link

Thank you man!

@Nischalv1999
Copy link

its not working for me, its showing the same error! Can there be any other alternative?

@omidantilong
Copy link

Can confirm the error still exists.

The solution posted here still works: #69 (comment)

Please get this resolved!

@tombannister-94
Copy link

tombannister-94 commented Aug 18, 2020

I can confirm that this error still exists and the fix here still works.

Thanks @edrcq for the fix.

@muhba25
Copy link

muhba25 commented Aug 26, 2020

Fixed. Thanks @edrcq

@CamaraMed
Copy link

it works 100%. Thanks a lot

@Arjungowda1
Copy link

Thanks buddy :)

@kaanselhep
Copy link

Yup, I can confirm #69 (comment) this solution works as well... Its very strange but it seems nobody is actually fixing it

@ssaran2014
Copy link

This problem still exists and the above solution still works. Thank you.

@Melmoth-the-Wanderer
Copy link

@FelixMH why is this issue closed? I don't think it's fixed in package, just ugly workaround.

@TIKOsup
Copy link

TIKOsup commented Jul 9, 2021

@edrcq It works! Thank you!

@nathan815
Copy link

@saurav1423 A workaround isn't a fix. It should be implemented in the package itself and a new version released.

@SgtPooki
Copy link

@edrcq this is still broken. are you around?

@SgtPooki
Copy link

SgtPooki commented Aug 12, 2021

for those of you that want this fix to be "permanent".. check out patch-package

@bajahranks
Copy link

2021 Still not fixed.

Thankfully #69 works....

@fadiof
Copy link

fadiof commented Dec 9, 2021

Take the content of the file here : https://raw.githubusercontent.com/darkguy2008/parallelshell/master/index.js

And put the content in your /project/node_modules/parallelshell/index.js

It will works in waiting the next release of the module

thank you

@thitlwin
Copy link

thitlwin commented Jan 5, 2022

You take the content of this : (100% copy) https://raw.githubusercontent.com/darkguy2008/parallelshell/master/index.js

And put in your /project/node_modules/parallelshell/index.js (100% paste)

It will works

@FelixMH

Thanks. It solves for me too.

@Shreeharan1207
Copy link

You take the content of this : (100% copy) https://raw.githubusercontent.com/darkguy2008/parallelshell/master/index.js

And put in your /project/node_modules/parallelshell/index.js (100% paste)

It will works

@FelixMH

Thanks man!

@flashape
Copy link

flashape commented Aug 18, 2022

How is this supposed to work in a ci/cd build environment? Nevermind I only need it to run locally and the fix mentioned above works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests