Using vue-cli to build and execute npm run dev to report errors and solve ~

  node.js, question

图片描述

图片描述

Solve ~!
Here is the error log
0 info it worked if it ends with ok
1 verbose cli [ ‘D:\Program Files\nodejs\node.exe’,
1 verbose cli ‘D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘run’,
1 verbose cli ‘dev’ ]
2 info using npm@3.10.8
3 info using node@v6.8.0
4 verbose run-script [ ‘predev’, ‘dev’, ‘postdev’ ]
5 info lifecycle first_vue@~predev: first_vue@
6 silly lifecycle first_vue@~predev: no script for predev, continuing
7 info lifecycle first_vue@~dev: first_vue@
8 verbose lifecycle first_vue@~dev: unsafe-perm in lifecycle true
9 verbose lifecycle first_vue@~dev: PATH: D:Program Filesnodejsnode_modulesnpmbinnode-gyp-bin; F:myfuturevue_learnnode_modules.bin; Z:bin; D:Program FilesGitmingw64bin; D:Program FilesGitusrlocalbin; D:Program FilesGitusrbin; D:Program FilesGitusrbin; D:Program FilesGitmingw64bin; D:Program FilesGitusrbin; Z:bin; C:Program Files (x86)Common FilesNetSarang; C:WindowsSystem32Wbem; C:Windows; C:Windowssystem32; E:Javajdk1.7.0_65bin; C:Windowssystem32; C:Windows; C:WindowsSystem32Wbem; C:WindowsSystem32WindowsPowerShellv1.0; C:Program Files (x86)NVIDIA CorporationPhysXCommon; C:Program FilesIntelWiFibin; C:Program FilesCommon FilesIntelWirelessCommon; D:Program FilesTortoiseSVNbin; D:Program Filesnodejs; D:Program Filesnodejsnode_global; C:windowssystem32; D:nvwm; D:Program FilesGitcmd; D:Program Filesnodejs; C:Ruby23-x64bin; D:Ruby23-x64bin; D:Ruby22bin; C:Usersydbj0129AppDataRoamingnpm; D:Program FilesGitusrbinvendor_perl; D:Program FilesGitusrbincore_perl
10 verbose lifecycle first_vue@~dev: CWD: F:myfuturevue_learn
11 silly lifecycle first_vue@~dev: Args: [ ‘/d /s /c’,
11 silly lifecycle ‘cross-env NODE_ENV=development webpack-dev-server –open –inline –hot’ ]
12 silly lifecycle first_vue@~dev: Returned: code: 1 signal: null
13 info lifecycle first_vue@~dev: Failed to exec dev script
14 verbose stack Error: first_vue@ dev:cross-env NODE_ENV=development webpack-dev-server --open --inline --hot
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (D:Program Filesnodejsnode_modulesnpmlibutilslifecycle.js:255: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> (D:Program Filesnodejsnode_modulesnpmlibutilsspawn.js:40: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:877:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid first_vue@
16 verbose cwd F:myfuturevue_learn
17 error Windows_NT 10.0.10586
18 error argv “D:\Program Files\nodejs\node.exe” “D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” “dev”
19 error node v6.8.0
20 error npm v3.10.8
21 error code ELIFECYCLE
22 error first_vue@ dev:cross-env NODE_ENV=development webpack-dev-server --open --inline --hot
22 error Exit status 1
23 error Failed at the first_vue@ dev script ‘cross-env NODE_ENV=development webpack-dev-server –open –inline –hot’.
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 first_vue package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error cross-env NODE_ENV=development webpack-dev-server –open –inline –hot
23 error You can get information on how to open an issue for this project with:
23 error npm bugs first_vue
23 error Or if that isn’t available, you can get their info via:
23 error npm owner ls first_vue
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Or …cmdThe window of the try? Try againWARNUpdate inminimatch? Try againcnpmDownload the package? Try againnpmDownload the package? If you can’t do it again, try it.yarnDownload the package? No more … I haven’t met one yet …