-
Notifications
You must be signed in to change notification settings - Fork 0
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
Command failed with exit code 1: npm #1
Comments
Hi @parloti! That issue could be related to Windows and the working directory. Could you run the command with --debug flag and post the entire output here? |
I ran it as a Husky hook and manually on windows, the result is the same. Perhaps an option, as defined here, does not accept a multiword argument. Modifying this line to This is the original output, with no code change.
|
@parloti thank you for your investigation so far. This seems to be a known problem of Node on Windows, see nodejs/node#7367 I'm using the
I don't have access to a Windows machine at the moment, so I couldn't verify yet. Could you please give it a try: |
That worked like a charm. |
Thank you, I'm going to add it to the README. |
npx git-pull-run -p "package-lock.json" -c "npm install"
this command throws the following error
the command being executed is
npm
and notnpm install
.The text was updated successfully, but these errors were encountered: