the*_*ors 5 json npm-scripts angular5 angular6
我已经将Angular 5应用程序迁移到了Angular6。除中的自定义脚本外,它都运行良好package.json。
当我ng deploy在终端中使用时,它显示以下错误:
指定的命令(“部署”)无效。有关可用选项的列表,请运行“ ng help”。您是说“帮助”吗?
以下是我的package.json文件
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"ngsw-config": "node_modules/.bin/ngsw-config dist src/ngsw-config.json",
"ngsw-copy": "cp node_modules/@angular/service-worker/ngsw-worker.js dist/",
"deploy": "ng build --prod && npm run ngsw-config && npm run ngsw-copy"
},
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1553 次 |
| 最近记录: |