frontend-maven-plugin icon indicating copy to clipboard operation
frontend-maven-plugin copied to clipboard

Failed to run install-node-and-yarn

Open IvanSilaev opened this issue 6 years ago • 4 comments

Hi,

I'm trying to execute mvn frontend-maven-plugin:1.7.6:install-node-and-yarn command and it's fails with this message

image Translate: Unable to run this application on your PC.

[INFO] --- frontend-maven-plugin:1.7.6:install-node-and-yarn (install node and yarn) @ SpringTodoApplication --- [INFO] Installing node version v10.15.3 [INFO] Copying node binary from C:\Users\suchbaka\.m2\repository\com\github\eirslett\node\10.15.3\node-10.15.3-win-x64.exe to C:\SpringTodoApplication\target\node\node.exe [INFO] Installed node locally. [INFO] Installing Yarn version v1.16.0 [INFO] Unpacking C:\Users\suchbaka\.m2\repository\com\github\eirslett\yarn\1.16.0\yarn-1.16.0.tar.gz into C:\SpringTodoApplication\target\node\yarn [INFO] Installed Yarn locally. [INFO] [INFO] --- frontend-maven-plugin:1.7.6:yarn (yarn install) @ SpringTodoApplication --- [INFO] Running 'yarn install' in C:\SpringTodoApplication\src\main\client [ERROR] �⪠���� � ����㯥. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:08 min [INFO] Finished at: 2019-05-16T12:27:44+03:00 [INFO] Final Memory: 26M/337M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.6:yarn (yarn install) on project SpringTodoApplication: Failed to run task: 'yarn install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

Windows 10, 64-bit, Java 8

IvanSilaev avatar May 16 '19 09:05 IvanSilaev

Maybe you have antivirus set up that doesn't like node.js?

eirslett avatar May 21 '19 12:05 eirslett

@eirslett I'm also getting the same error in windows 10. Antivirus is turned off and running the maven command using admin.

ArpitVarshney18 avatar Sep 03 '20 15:09 ArpitVarshney18

@eirslett same here, I think I tried almost everything to run it.

dzunik91 avatar Sep 04 '20 08:09 dzunik91

I'm facing the same issue.

frontend-maven-plugin : 1.13.4 node : v18.17.1 yarn : v1.22.19 windows : 10

Works perfectly if I run as admin.

jouhami avatar Aug 24 '23 08:08 jouhami