eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.23k stars 867 forks source link

Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.10.0: #931

Closed Salahlemangar closed 3 years ago

Salahlemangar commented 4 years ago

[INFO] npm ERR! Unexpected end of JSON input while parsing near '...RS5V\r\n-----END PGP ' [INFO] [INFO] npm ERR! A complete log of this run can be found in: [INFO] npm ERR! /home/salahl/.npm/_logs/2020-09-09T13_06_14_163Z-debug.log [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22.308 s [INFO] Finished at: 2020-09-09T14:06:14+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.10.0:npm (npm install) on project blog: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

Hello I'm using the latest version which is 1.10.0

any suggestions on related issue?

seanffy commented 3 years ago

I have the same problem

holgergp commented 3 years ago

The content of your package.json seems to be invalid, as in invalid json. Does it contain sth like RS5V\r\n-----END PGP in an odd place?

Qiming-C commented 3 years ago

[INFO] npm ERR! Unexpected end of JSON input while parsing near '...RS5V\r\n-----END PGP ' [INFO] [INFO] npm ERR! A complete log of this run can be found in: [INFO] npm ERR! /home/salahl/.npm/_logs/2020-09-09T13_06_14_163Z-debug.log [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22.308 s [INFO] Finished at: 2020-09-09T14:06:14+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.10.0:npm (npm install) on project blog: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

Hello I'm using the latest version which is 1.10.0

any suggestions on related issue?

did you figure it out? I have same issue