monkey-codes/java-reactive-chat

A problem with running the application

Opened this issue · 2 comments

Hi,

Thank you for your sharing.

Using Windows 10, I followed your build instruction. and both of "node" and "npm" are installed as follows:
$ npm -version
4.1.2
$ node -v
v7.7.1

when I want to build the app, I encountered the following error:

gradlew clean build

THIS BUILD HAS BEEN TESTED ON OSX WITH NPM 4.1.2 AND NODE v7.7.1 AVAILABLE ON THE PATH

:clean
:compileJava
Note: E:\IdeaProjects\Monem\java-reactive-chat-master\java-reactive-chat-master\src\main\java\codes\monkey\reactivechat\UserStats.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:npmDependencies FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':npmDependencies'.

A problem occurred starting process 'command 'npm''

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 4.827 secs

It would be appreciative if you help me solving this problem.
Thanks.

Hi amonemian,

I suspect that gradle cannot find the npm binary on the path. Can you please try to run just the ui build and see if that works.

$ cd src/main/ui
$ npm install
$ npm run build

If that works, maybe you can try replacing commandLine 'npm' to the full path of the npm binary in the build.gradle file.

Hello,

another solution on Windows is to replace commandLine 'npm' with commandLine 'npm.cmd'