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

gradlew -t run on windows, BUILD FAILED: Execution failed for task ':npm-install'. > npm install failed (exit code = 1) #2

Closed
NovaLogicDev opened this issue Dec 20, 2018 · 4 comments

Comments

@NovaLogicDev
Copy link

This is a known bug with windows and the Node Gradle Plugin, I haven't been able to find a workaround, and it makes all the samples unusable.

Any Help or a fix would be appreciated, thanks.

gradle-node-plugin issue #87
jhipster #3053

@joerg-rade
Copy link

joerg-rade commented Dec 21, 2018 via email

@NovaLogicDev
Copy link
Author

Hi,

Thanks for the suggestion, but I can't find a .npmrc in either my global node installation or the local project file. After building and failing, one did appear in the build folder, but it did not contain those lines.

Thanks

@rjaros
Copy link
Owner

rjaros commented Dec 22, 2018

Hi,

I'm not using Windows very often, but I've just tried building a "showcase" example on my VirtualBox Windows 10 machine, and I've had no serious problems with this. I've just had to:

  • download and install JDK
  • download and install NodeJS with NPM
  • download and install git
  • add git paths (C:\Program Files\Git\usr\bin, C:\Program Files\Git\mingw64\bin and C:\Program Files\Git\mingw64\libexec\git-core) to system Path environment variable

Can you try this?

@NovaLogicDev
Copy link
Author

Hello,

I tried your suggestion on my main development system, and it didn't work. I went ahead and created a VM of windows10 and tried again which did yield success. So probably the issue is being caused by some sort of confliction with one of my other dev environments, luckily I keep a WSL Command line for just these occasions.

Thanks for the help.

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

3 participants