Home > front end >  Vue cli - service serve an error, ask for help!!
Vue cli - service serve an error, ask for help!!

Time:12-22

This is the idea of start times of the error message
'vue cli - service - not internal or external command, nor a runnable program
Or a batch file,
npm ERR! Code ELIFECYCLE
npm ERR! Errno 1
npm ERR! [email protected] serve: ` vue cli - service serve `
npm ERR! The Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] serve script.
npm ERR! This is probably not a problem with NPM. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! D: \ nodejs \ node_cache \ _logs \ 2020-12-21 T03_16_48_891Z - the debug log


This is directory log information
0 info it worked if it ends with ok
1 the verbose cli [' D: \ \ nodejs \ \ node exe ',
1 verbose cli 'D: \ \ nodejs \ \ node_modules \ \ NPM \ \ bin \ \ NPM - cli. Js',
1 the verbose cli 'run',
1 verbose cli 'serve'
1 verbose cli '- scripts - the prepend - node - path=auto']
2 the info using [email protected]
3 the info using [email protected]
4 verbose run - script [' preserve ', 'serve', 'postserve]
5 the info lifecycle [email protected] to preserve: [email protected]
6 the info lifecycle [email protected] ~ serve: [email protected]
7 verbose lifecycle [email protected] ~ serve: unsafe - perm in lifecycle true
8 verbose lifecycle [email protected] ~ serve: PATH: D: \ nodejs \ node_modules/NPM/node_modules/NPM - lifecycle \ node - gyp - bin; D: \ \ FileRecv \ jeecg - the boot - 2354481654 master \ ant - design - vue - jeecg \ node_modules \ bin. C: \ Program Files \ (x86) Common Files \ Oracle \ Java \ javapath; C: \ Program Files \ (x86) Common Files \ Oracle \ Java \ javapath; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C: \ Windows \ System32 \ WindowsPowerShell \ v1.0 \; C: \ Program Files \ Java \ jdk1.8.0 _271 \ bin. C: \ Program Files \ Java \ jdk1.8.0 _271 \ jre \ bin. C: \ Program Files \ MySQL 5.7 \ bin \ MySQL Server; E: \ mongo \ mongo \ Server \ 3.2 \ bin; E: \ maven \ apache maven - 3.6.3 \ bin. C: \ Program Files \ PuTTY (x86) \; C: \ Windows \ System32 \ WindowsPowerShell \ v1.0 \; C: \ Windows \ System32 \ WindowsPowerShell \ v1.0 \; F: \ python386; F: \ python386 \ Scripts; C: \ Program Files \ dotnet (x86) \; E: \ maven \ apache maven - 3.6.3 \ bin. E: \ maven \ apache maven - 3.6.3 \ bin. C: \ Program Files \ dotnet \; C: \ Program Files \ Microsoft SQL Server 130 \ Tools \ Binn \ \; C: \ Program Files \ Microsoft SQL Server \ ODBC \ 170 \ \ Client SDK Tools \ Binn \; D: \ nodejs \; D: \ nodejs \ node_global; C: \ Users \ \ Administrator \. Dotnet \ tools; C: \ Users \ \ Administrator \ AppData \ Roaming \ NPM
9 verbose lifecycle [email protected] ~ serve: CWD: D: \ \ FileRecv \ jeecg - the boot - 2354481654 master \ ant - design - vue - jeecg
10 silly lifecycle [email protected] ~ serve: the Args: ['/d/s/c ', 'vue - cli - service serve']
11 silly lifecycle [email protected] ~ serve: Returned: code: 1 signal: null
12 the info lifecycle [email protected] ~ serve: Failed to exec serve script
13 verbose stack Error: [email protected] serve: ` vue cli - service serve `
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. & lt; Anonymous> (D: \ nodejs \ node_modules/NPM/node_modules/NPM - lifecycle \ index js: 332:16)
13 verbose stack at EventEmitter. Emit (events. Js: 198:13)
13 verbose stack at ChildProcess. & lt; Anonymous> (D: \ nodejs \ node_modules/NPM/node_modules/NPM - lifecycle \ lib \ spawn js: 55:14)
13 verbose stack at ChildProcess. Emit (events. Js: 198:13)
13 verbose stack at maybeClose (internal/child_process. Js: 982:16)
13 verbose stack at the Process. The ChildProcess. _handle. Onexit (internal/child_process. Js: 259:5)
14 verbose pkgid [email protected]
15 verbose CWD D: \ \ FileRecv \ jeecg - the boot - 2354481654 master \ ant - design - vue - jeecg
16 verbose Windows_NT 6.1.7601
17 verbose argv "D: \ \ nodejs \ \ node exe" "D: \ \ nodejs \ \ node_modules \ \ NPM \ \ bin \ \ NPM - cli. Js" "run" "serve" "- scripts - the prepend - node - path=auto"
18 verbose node v10.23.0
19 verbose NPM v6.14.8
20 the error code ELIFECYCLE
21 the error errno 1
22 the error [email protected] serve: ` vue cli - service serve `
22 the error Exit status 1
23 error Failed at the [email protected] serve script.
23 the error This is probably not a problem with NPM. There is likely additional logging output above.
24 verbose exit [1, true]

CodePudding user response:

Delete the node_modules file
$NPM i.
  • Related