Kotlin / kotlin-frontend-plugin

Gradle Kotlin (http://kotlinlang.org) plugin for frontend development
Apache License 2.0
561 stars 69 forks source link

Ensure npm install spawns correct node executable #130

Open alshain opened 5 years ago

alshain commented 5 years ago

Some node install scripts launch child node processes. Because I already have a global node installation on the path, this will invoke it with a different node installation which breaks many install scripts.

This fix should prevent that.

alshain commented 5 years ago

It would be nice if this could also be backported to 0.37

snrostov commented 5 years ago

Sorry for long delay. Does adding .npmrc file with scripts-prepend-node-path=true solves this problem?