5***@qq.com
5***@qq.com
  • 发布:2019-01-10 17:22
  • 更新:2019-01-10 20:59
  • 阅读:2179

vue-cli 下载项目uni-app

分类:uni-app

npm i -> npm run serve 报错 !!!

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   'run',  
1 verbose cli   'serve',  
1 verbose cli   '--scripts-prepend-node-path=auto' ]  
2 info using npm@5.6.0  
3 info using node@v8.11.3  
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]  
5 info lifecycle uni-fang@0.1.0~preserve: uni-fang@0.1.0  
6 info lifecycle uni-fang@0.1.0~serve: uni-fang@0.1.0  
7 verbose lifecycle uni-fang@0.1.0~serve: unsafe-perm in lifecycle true  
8 verbose lifecycle uni-fang@0.1.0~serve: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;F:\java\inlet\winway-inlet-mobile\node_modules\.bin;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:\Windows\System32\OpenSSH\;F:\apache-tomcat-8.5.32\bin;F:\mysql-5.7.22-winx64\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Java\jdk1.8.0_181\bin;"C:\Program Files\Java\jre1.8.0_181\bin;";C:\Program Files\TortoiseSVN\bin;F:\Redis;C:\Users\oufuhua\AppData\Local\Microsoft\WindowsApps;C:\Users\oufuhua\AppData\Roaming\npm;F:\Microsoft VS Code\bin  
9 verbose lifecycle uni-fang@0.1.0~serve: CWD: F:\java\inlet\winway-inlet-mobile  
10 silly lifecycle uni-fang@0.1.0~serve: Args: [ '/d /s /c', 'npm run dev:h5' ]  
11 silly lifecycle uni-fang@0.1.0~serve: Returned: code: 1  signal: null  
12 info lifecycle uni-fang@0.1.0~serve: Failed to exec serve script  
13 verbose stack Error: uni-fang@0.1.0 serve: `npm run dev:h5`  
13 verbose stack Exit status 1  
13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)  
13 verbose stack     at emitTwo (events.js:126:13)  
13 verbose stack     at EventEmitter.emit (events.js:214:7)  
13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)  
13 verbose stack     at emitTwo (events.js:126:13)  
13 verbose stack     at ChildProcess.emit (events.js:214:7)  
13 verbose stack     at maybeClose (internal/child_process.js:925:16)  
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)  
14 verbose pkgid uni-fang@0.1.0  
15 verbose cwd F:\java\inlet\winway-inlet-mobile  
16 verbose Windows_NT 10.0.17134  
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve" "--scripts-prepend-node-path=auto"  
18 verbose node v8.11.3  
19 verbose npm  v5.6.0  
20 error code ELIFECYCLE  
21 error errno 1  
22 error uni-fang@0.1.0 serve: `npm run dev:h5`  
22 error Exit status 1  
23 error Failed at the uni-fang@0.1.0 serve script.  
23 error This is probably not a problem with npm. There is likely additional logging output above.  
24 verbose exit [ 1, true ]  
2019-01-10 17:22 负责人:无 分享
已邀请:
Trust

Trust - 少说废话

选择的哪个模版?
更新下最新版再试试,看下 scripts 下有没有 info 命令,有的话执行下:

$ npm run info

把结果信息贴出来

  • 5***@qq.com (作者)

    就是我默认模板开发的,之前可以的,就是有一次npm i之后,一直不行,删除node_modules模块,再重新npm i,还是有这个问题。难道每次都要重新下载项目之后。

    2019-01-11 09:30

  • 以前的想

    回复 5***@qq.com: 请问你这个问题解决了吗?我现在也遇到类似的问题了o(╥﹏╥)o

    2019-12-20 14:17

该问题目前已经被锁定, 无法添加新回复