How does gradle recognize npm commands?
I am getting this exception from gradle build task
npm' is not recognized as an internal or external command
Preconditions:
I have installed node locally on a windows machine. NPM command is working through the command line, but while running gradle build file from command or IDE I am getting that exception.
msi
file (npm comes with it) When you run gradle from your IDE, you are using a different path than when you run it from the command line. If you run the gradle task with --stacktrace and --debug, it should output the path it is using. You will need to set the path for your IDE according to OS/IDE instructions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.