当尝试为angular 4项目配置前端maven插件时,该插件试图执行一个名为load(“npm run load”)的脚本,该脚本在package.json中不存在。添加脚本时,生成成功通过。有没有办法告诉插件不要运行这个脚本?
这是我package.json档案
{
"name": "historage-ui",
"version": "1.0.0-SNAPSHOT",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^4.0.0",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
"core-js": "^2.4.1",
"rxjs": "^5.1.0",
"zone.js": "^0.8.4"
},
"devDependencies": {
"@angular/cli": "1.1.3",
"@angular/compiler-cli": "^4.0.0",
"@angular/language-service": "^4.0.0",
"@types/jasmine": "2.5.45",
"@types/node": "~6.0.60",
"codelyzer": "~3.0.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "~1.7.0",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~3.0.4",
"tslint": "~5.3.2",
"typescript": "~2.3.3"
}
}
这是插件配置:
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<!-- optional -->
<configuration>
<workingDirectory>src/main/historage-ui</workingDirectory>
</configuration>
<executions>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<!-- optional: default phase is "generate-resources" -->
<phase>generate-resources</phase>
<configuration>
<!-- optional: The default argument is actually
"install", so unless you need to run some other npm command,
you can remove this whole <configuration> section.
-->
<arguments>install</arguments>
</configuration>
</execution>
</executions>
</plugin>
这是堆栈跟踪: [错误] 未能在项目上执行目标 com.github.eirslett:frontend-maven-plugin:1.0:npm (npm run load) 在项目 historage_ui-js: 未能运行任务: 'npm run load --proxy=http://b77553:@10.255.123.73:8080' 失败。(错误代码 1)-
应在脚本中调用 Npm 安装来修复此问题
我刚遇到这个错误,它突然来了,破坏了我的项目。有没有人可以帮助我解决这个错误:
各位开发人员朋友,我需要帮助。当我尝试从github部署到Azure AppService时,github控制台会显示以下错误。 各位开发人员朋友,我需要帮助。当我尝试从github部署到Azure AppService时,github控制台会显示以下错误。 执行目标组织失败。阿帕奇。专家插件:maven surefire插件:2.22.2:FastFoodApp项目上的测试(默认测试):存在测试
我在执行脚本时遇到了这个错误。我已经升级了FF(56),Gecko(v0.19)和Selenium 3.6。。。 这是我的代码: 日志中的错误: 线程“main”java中出现异常。lang.IllegalStateException:驱动程序可执行文件的路径必须由webdriver设置。壁虎。驱动系统属性;有关更多信息,请参阅https://github.com/mozilla/geckodri
当我试图使用执行PHP脚本时,它不起作用。 在错误日志文件中显示: PHP警告:shell_exec()[function.shell exec]:无法执行'PHP/home/snabsam/public_html/。。。。。 系统 Centos shell_exec与clamscan配合使用 与clamav的功能配合使用 但它没有执行PHP脚本 我检查过的东西: PHP是off 不存在于在php
Invoke-WebRequest:请求中止:无法创建SSL/TLS安全通道。在C:\users\njujjavarapu\desktop\snapshot.ps1:8 char:1+Invoke-WebRequest-uri https://njidlsdsapp01/support invoke-RestMethod:请求中止:无法创建SSL/TLS安全通道。在C:\users\njujjav
正在尝试安装oozie 4.0.1,请访问http://www.thecloudavenue.com/2013/10/installation-and-configuration-of.html hadoop version-2.4.0 Maven-3.0.4 SQOOP-1.4.4 .......... [信息]Apache Oozie HCatalog库....................