angular.js - angularjs官网Demo quickstart-master在win10系统中启动时报错
黄舟
黄舟 2017-05-15 17:06:19
0
2
729

在cmd中npm start时报错

在项目目录中的日志文件内容是:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using npm@3.8.9
3 info using node@v6.2.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle angular2-quickstart@1.0.0~prestart: angular2-quickstart@1.0.0
6 silly lifecycle angular2-quickstart@1.0.0~prestart: no script for prestart, continuing
7 info lifecycle angular2-quickstart@1.0.0~start: angular2-quickstart@1.0.0
8 verbose lifecycle angular2-quickstart@1.0.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle angular2-quickstart@1.0.0~start: PATH: C:Program Filesnodejsnode_modulesnpmbinnode-gyp-bin;C:gitCodeasp.netmvcCodeasp.netmvcangularJSangularjs001node_modules.bin;C:Program Filesnodejs;C:UsersOliverAppDataRoamingnpm;C:Program Filesnodejs;C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)ATI TechnologiesATI.ACECore-Static;C:Program Files (x86)Windows Kits8.1Windows Performance Toolkit;C:Program FilesMicrosoft SQL Server110ToolsBinn;C:Program Files (x86)Microsoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100DTSBinn;C:Program Files (x86)Microsoft SQL Server100ToolsBinnVSShellCommon7IDE;C:Program Files (x86)Microsoft Visual Studio 9.0Common7IDEPrivateAssemblies;C:Program Files (x86)Microsoft SQL Server100DTSBinn;C:Program FilesTortoiseSVNbin;C:Program Files (x86)Javajdk1.8.0_91binjava.exe;C:Program Files (x86)Javajdk1.8.0_91binjavac.exe;C:Program Files (x86)Javajdk1.8.0_91bin;C:Program Files (x86)Javajre1.8.0_91bin;C:Program Files (x86)Microsoft SDKsTypeScript1.0;C:Program FilesMicrosoft SQL Server120ToolsBinn;C:UsersOliver.dnxbin;C:Program FilesMicrosoft DNXDnvm;C:Program Filesnodejs;C:UsersOliverAppDataRoamingnpm
10 verbose lifecycle angular2-quickstart@1.0.0~start: CWD: C:gitCodeasp.netmvcCodeasp.netmvcangularJSangularjs001
11 silly lifecycle angular2-quickstart@1.0.0~start: Args: [ '/d /s /c',
11 silly lifecycle 'tsc && concurrently "npm run tsc:w" "npm run lite" ' ]
12 silly lifecycle angular2-quickstart@1.0.0~start: Returned: code: 2 signal: null
13 info lifecycle angular2-quickstart@1.0.0~start: Failed to exec start script
14 verbose stack Error: angular2-quickstart@1.0.0 start: tsc && concurrently "npm run tsc:w" "npm run lite"
14 verbose stack Exit status 2
14 verbose stack at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmlibutilslifecycle.js:245:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmlibutilsspawn.js:24:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:850:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid angular2-quickstart@1.0.0
16 verbose cwd C:gitCodeasp.netmvcCodeasp.netmvcangularJSangularjs001
17 error Windows_NT 10.0.10240
18 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
19 error node v6.2.0
20 error npm v3.8.9
21 error code ELIFECYCLE
22 error angular2-quickstart@1.0.0 start: tsc && concurrently "npm run tsc:w" "npm run lite"
22 error Exit status 2
23 error Failed at the angular2-quickstart@1.0.0 start script 'tsc && concurrently "npm run tsc:w" "npm run lite" '.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the angular2-quickstart package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error tsc && concurrently "npm run tsc:w" "npm run lite"
23 error You can get information on how to open an issue for this project with:
23 error npm bugs angular2-quickstart
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls angular2-quickstart
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

모든 응답(2)
大家讲道理

먼저 해당 패키지가 제대로 설치되었는지 확인하고 node
npm install -g Concurrently
npm install -g lite-server
npm install -g typescript

에서 실행해 보세요.

설치가 여전히 작동하지 않으면 package.json 파일을 수정해 보세요
"start": "tsc && Concurrently "npm run tsc:w" "npm run lite" "
다음으로 변경하세요
"start": "동시에 " npm run tsc:w" "npm run lite" "

phpcn_u1582

문제를 해결하려면 2층에서 질문에 답해 보세요. 감사합니다!

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿