问题
Does anybody know why I get this exception:
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm start) on project RTC-loading-scheduler-services: Failed to run task: 'npm run-script dev-build --proxy=http://www-proxy.omv.com:8080' failed. (error code 1) -> [Help 1]
And the reason for this error is another error
13 verbose stack Error: RTC-loading-scheduler@0.0.0 dev-build:
ng build 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (C:\Users\X01026986\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:189:13) 13 verbose stack at ChildProcess.<anonymous> (C:\Users\X01026986\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:189:13) 13 verbose stack at maybeClose (internal/child_process.js:970:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid RTC-loading-scheduler@0.0.0
I have found the below link where it is suggested to change the node and npm versions, which I did without success
https://github.com/thingsboard/thingsboard/issues/1335
and also to clean everything and then restart
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get full-upgrade
sudo apt-get autoremove
sudo apt-get clean
How could I run the above on Windows?
I have also found similar posts and deleted node_modules, deleted package-lock.json, npm install, but nothing changes.
Or does anybody have an idea how to get rid of this error?
This is my eirslett:frontend-maven-plugin definition:
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<workingDirectory>src/main/webapp</workingDirectory>
<installDirectory>target</installDirectory>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<nodeVersion>v12.16.3</nodeVersion>
<npmVersion>6.14.4</npmVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install</arguments>
<workingDirectory>RTC-loading-scheduler-frontend</workingDirectory>
</configuration>
</execution>
<execution>
<id>angular-cli install</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install --no-optional -g angular-cli</arguments>
</configuration>
</execution>
<execution>
<id>npm start</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run-script ${build.npm.command}</arguments>
<workingDirectory>${basedir}/RTC-loading-scheduler-frontend</workingDirectory>
</configuration>
</execution>
</executions>
</plugin>
来源:https://stackoverflow.com/questions/63670891/eirslettfrontend-maven-plugin1-0npm-npm-start-on-project-exit-status-1-at