Run ' npm run Dev ' error when initializing project with VUE-CLI

Source: Internet
Author: User
Tags emit error code microsoft sql server ssh acer
0 Info It worked if it ends with OK 1 verbose cli [' G:\\program files\\nodejs\\node.exe ', 1 verbose CLI ' c:\\users\\ace  R\\appdata\\roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js ', 1 verbose CLI ' run ', 1 verbose cli ' dev '] 2 info using npm@5.6.0 3 Info using node@v8.9.4 4 verbose run-script [' Predev ', ' dev ', ' Postdev '] 5 info lifecycle Hello@1.0.0~prede  v:hello@1.0.0 6 Info Lifecycle hello@1.0.0~dev:hello@1.0.0 7 verbose lifecycle Hello@1.0.0~dev:unsafe-perm in lifecycle True 8 verbose lifecycle Hello@1.0.0~dev:path:c:\users\acer\appdata\roaming\npm\node_modules\npm\node_modules\ Npm-lifecycle\node-gyp-bin; F:\GitHub\hello\hello\node_modules\.bin; C:\Users\acer\bin; G:\Program Files\git\mingw64\bin; G:\Program Files\git\usr\local\bin; G:\Program Files\git\usr\bin; G:\Program Files\git\usr\bin; G:\Program Files\git\mingw64\bin; G:\Program Files\git\usr\bin; C:\Users\acer\bin; G:\Program Files\java\jdk1.8.0_92\bin; C:\ProgramData\Oracle\Java\javapath; C:\Windows\system32; C:\Windows; C +Windows\system32\wbem; C:\Program Files (x86) \intel\opencl sdk\2.0\bin\x86; C:\Program Files (x86) \intel\opencl sdk\2.0\bin\x64; C:\Program Files (x86) \ Windows Kits\8.1\windows performance Toolkit; C:\Program Files\Microsoft SQL Server\110\tools\binn; C:\Program Files (x86) \microsoft sdks\typescript\1.0; C:\Program Files\Microsoft SQL Server\120\tools\binn; F:\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin; C:\Python27; C:\Python27\Lib\site-packages\django; C:\Python27\Scripts; G:\Program Files\matlab\r2014a\runtime\win64; G:\Program Files\matlab\r2014a\bin; G:\Program files\matlab\r2014a\polyspace\bin;d:\360downloads\nvidia\caffedev\caffe-windows\build\x64\release; G:\Program Files\opencv\build\x86\vc12\bin;d:\360downloads\nvidia\caffedev\caffe-windows\3dparty\bin; G:\Program Files\ffmpeg\bin; G:\Program Files\nodejs; G:\Program Files\git\cmd; G:\Program Files\git\usr\bin;d:\ssh; G:\Program Files\opencv\build\x86\vc12\bin; G:\Program Files\ssh; C:\USERS\ACER\APPDATA\ROAMING\NPM; G:\Program Files\Microsoft VS Code\bin; G:\Program Files\git\usr\bin\vendor_perl; G:\Program Files\git\usr\bin\core_perl 9 verbose lifecycle Hello@1.0.0~dev:cwd:f:\github\hello\hello silly Lifecycle Hello@1.0.0~dev:args: ['/d/s/C ', silly lifecycle ' webpack-dev-server--inline--progress--config Build /webpack.dev.conf.js '] One silly lifecycle hello@1.0.0~dev:returned:code:1 signal:null Info Lifecycle hello@1.0.0~ dev:failed to exec dev script verbose stack error:hello@1.0.0 dev: ' webpack-dev-server--inline--progress--config b Uild/webpack.dev.conf.js ' verbose stack Exit status 1 verbose stack at eventemitter.<anonymous> (C:\Users\ acer\appdata\roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16) verbose stack at EmitTwo ( events.js:126:13) verbose stack at Eventemitter.emit (events.js:214:7) verbose stack at Childprocess.<ano Nymous> (c:\users\acer\appdata\roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) verbose stack at emittwo (events.js:126:13) verbose stack at Childprocess.emit (events.js:214:7) Verbo Se stack at maybeclose (internal/child_process.js:925:16), verbose stack at process.childprocess._handle.onexit  (internal/child_process.js:209:5) verbose pkgid hello@1.0.0 verbose cwd F:\GitHub\hello\hello verbose windows_nt 6.1.7601 verbose argv "G:\\program files\\nodejs\\node.exe" "C:\\users\\acer\\appdata\\roaming\\npm\\node_modules \\npm\\bin\\npm-cli.js "Run" "Dev" verbose node v8.9.4 verbose npm v5.6.0 error code elifecycle error errno 1 Error hello@1.0.0 Dev: ' webpack-dev-server--inline--progress--config build/webpack.dev.conf.js ' ERROR Exit stat
US 1 Error Failed at the hello@1.0.0 dev script. The error is probably not a problem with NPM.
There is likely additional logging output above.
 Verbose exit [1, True]

1, try uninstalling NPM uninstall Webpack-dev-server, in the installation of this npm I webpack-dev-server@2.9.7, I can start normally.
2, delete node_modules directory, use NPM Install, do not use CNPM,NPM is also can be set to Taobao mirror, CNPM sometimes use up will have a lot of problems, nameless install some superfluous things without reason.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.