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

exec() doesn't apply the arguments correctly #895

Closed
tamasmonus-cas opened this issue Oct 18, 2018 · 1 comment
Closed

exec() doesn't apply the arguments correctly #895

tamasmonus-cas opened this issue Oct 18, 2018 · 1 comment

Comments

@tamasmonus-cas
Copy link

@tamasmonus-cas tamasmonus-cas commented Oct 18, 2018

Node version (or tell us if you're using electron or some other framework):

v8.11.2

ShellJS version (the most recent version/Github branch you see the bug on):

v0.8.2

Operating system:

Linux

Description of the bug:

I'm creating an auto merge and publish for our CI process. When I get to publish I want to execute the following command:

shell.exec(`npm version prepatch --preid=beta`);

But it seems that the --preid argument is not passed correctly because the resulting version number will won't have the 'beta' preid. If I run this same command inside my terminal, then it works, just okay. Any idea is much appreciated, because I'm starting to pull out my hair right now, because of this.

@tamasmonus-cas
Copy link
Author

@tamasmonus-cas tamasmonus-cas commented Oct 18, 2018

Okay, I found the solution/problem. Somehow, some time ago during my struggling I installed a package called publish. Which has a dependency/requires npm@2.x.x.... So... I had a locally installed npm inside node_modules with version 2.x.x and that was used by shelljs -.-'

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

1 participant