我在运行时收到以下错误列表ng serve
。
我的包JSON如下:
{ "name": "ProName", "version": "0.0.0", "scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e" }, "private": true, "dependencies": {
"@angular-devkit/build-angular": "~0.12.0",
"@angular/animations": "5.2.10",
"@angular/common": "5.2.10",
"@angular/compiler": "5.2.10",
"@angular/compiler-cli": "5.2.10",
"@angular/core": "5.2.10",
"@angular/forms": "5.2.10",
"@angular/platform-browser": "5.2.10",
"@angular/platform-browser-dynamic": "5.2.10",
"@angular/router": "5.2.10",
"@types/dotenv": "^4.0.3",
"@types/errorhandler": "0.0.32",
"@types/express": "^4.16.0",
"@types/node": "^10.5.1",
"apostille-library": "^7.1.0",
"core-js": "^2.5.4",
"dotenv": "^6.0.0",
"errorhandler": "^1.5.0",
"express": "^4.16.0",
"nem2-sdk": "^0.9.7",
"rxjs": "~6.3.3",
"stream": "0.0.2",
"tslib": "^1.9.0",
"typescript": "^2.9.2",
"zone.js": "~0.8.26" } }
我得到的错误:
./node_modules/aws-sign2/index.js 中的错误未找到module:错误:无法解析 '/Users/MYPC/Documents/Myproj/ProName/node_modules/aws-sign2' 中的 'crypto' ./node_modules 中的错误/aws4/aws4.js module未找到:错误:无法解析 '/Users/MYPC/Documents/Myproj/ProName/node_modules/aws4' 中的 'crypto' ./node_modules/ecc-jsbn/index.js module中的错误未找到:错误:无法解析 '/Users/MYPC/Documents/Myproj/ProName/node_modules/ecc-jsbn' 中的 'crypto' ./node_modules/http-signature/lib/verify.js 中的错误未找到module:错误:无法解析 '/Users/MYPC/Documents/Myproj/ProName/node_modules/http-signature/lib' 中的 'crypto' 错误 ./node_modules/http-signature/lib/signer.js module未找到:错误: 无法解析 ' 中的 'crypto'/Users/MYPC/Documents/Myproj/ProName/node_modules/http-signature/lib' ./node_modules/nem-sdk/build/external/nacl-fast.js 中的错误找不到module:错误:无法解析“加密” '在'/Users/MYPC/Documents/Myproj/ProName/node_modules/nem-sdk/build/external' ./node_modules/nem-sdk/node_modules/aws-sign2/index.js 中的错误