Install in Windows

153 views
Skip to first unread message

alan tang

unread,
Jun 17, 2021, 10:07:32 PM6/17/21
to node-java
Hi all,

I got the solution for the windows 

Node JS version: 14.7.1
Npm Version: 7.17.0
python: 2.7

// Npm config list
msvs_version: "2017"

1) Download JDK
Manually download JDK. You may use the link below

2) set JAVA_HOME to JDK home folder
Just go to Environment Variables set up the path. You make check the link below, telling you how to set up the path on windows or UNIX System

3) Restart the computer

4) Run "npm install --global --production windows-build-tools " in administrator CMD
Make sure you have installed python via NPM

5) Run "npm i java" in CMD
If you installed success, you may ignore step 6 , 7 and 8.
If you get the error msg, pls go to step 6 , 7 and 8.

6) Delete node_modules and package-lock.json

7) Run "npm install" in CMD

8) Repeat step 5
You may install successfully. If you still get the error, you may need to find another solution.

Hope you guys can install it successfully!

Thanks
Reply all
Reply to author
Forward
0 new messages