0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\\Program Files (x86)\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'serve' 1 verbose cli ] 2 info using npm@6.10.2 3 info using node@v12.8.1 4 verbose run-script [ 'preserve', 'serve', 'postserve' ] 5 info lifecycle fasp-gp@1.0.0~preserve: fasp-gp@1.0.0 6 info lifecycle fasp-gp@1.0.0~serve: fasp-gp@1.0.0 7 verbose lifecycle fasp-gp@1.0.0~serve: unsafe-perm in lifecycle true 8 verbose lifecycle fasp-gp@1.0.0~serve: PATH: C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\apple\test\fasp-gp-dev\node_modules\.bin;C:\Program Files\Parallels\Parallels Tools\Applications;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\nodejs\;C:\Users\apple\AppData\Local\Microsoft\WindowsApps;C:\Users\apple\AppData\Roaming\npm;C:\Users\apple\AppData\Local\Programs\Microsoft VS Code\bin 9 verbose lifecycle fasp-gp@1.0.0~serve: CWD: C:\Users\apple\test\fasp-gp-dev 10 silly lifecycle fasp-gp@1.0.0~serve: Args: [ '/d /s /c', 'vue-cli-service serve' ] 11 silly lifecycle fasp-gp@1.0.0~serve: Returned: code: 134 signal: null 12 info lifecycle fasp-gp@1.0.0~serve: Failed to exec serve script 13 verbose stack Error: fasp-gp@1.0.0 serve: `vue-cli-service serve` 13 verbose stack Exit status 134 13 verbose stack at EventEmitter.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:326:16) 13 verbose stack at EventEmitter.emit (events.js:203:13) 13 verbose stack at ChildProcess.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:203:13) 13 verbose stack at maybeClose (internal/child_process.js:1021:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) 14 verbose pkgid fasp-gp@1.0.0 15 verbose cwd C:\Users\apple\test\fasp-gp-dev 16 verbose Windows_NT 10.0.19045 17 verbose argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve" 18 verbose node v12.8.1 19 verbose npm v6.10.2 20 error code ELIFECYCLE 21 error errno 134 22 error fasp-gp@1.0.0 serve: `vue-cli-service serve` 22 error Exit status 134 23 error Failed at the fasp-gp@1.0.0 serve script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 134, true ]
时间: 2023-07-23 16:13:05 浏览: 86
根据日志信息,出现了一个 Exit status 134 错误,这通常表示发生了一个非正常的进程终止。根据日志中的信息,这个错误是由于运行 "vue-cli-service serve" 命令时引起的。
要进一步排查该问题,可以尝试以下步骤:
1. 确保你的项目依赖项已经正确安装。可以尝试运行 `npm install` 命令来安装缺失的依赖项。
2. 尝试使用最新版本的 npm 和 Node.js。你正在使用 npm 6.10.2 和 Node.js v12.8.1,你可以尝试更新到最新版本来看看是否能够解决问题。
3. 检查项目的配置和代码是否正确。特别注意 "vue-cli-service serve" 命令是否正确配置和调用。
4. 如果你使用了自定义的插件或配置,请确保它们与当前版本的 Vue CLI 兼容。可能需要更新插件或调整配置文件以适应最新版本。
如果上述方法都没有解决问题,建议查找类似的问题或在相关社区寻求帮助,以获取更多针对你具体项目和配置的支持。
相关问题
npm err! gyp info it worked if it ends with ok
npm err! gyp info it worked if it ends with ok 是 npm 构建工具 gyp 提示信息中的一句话。它表示构建过程正常完成且没有错误。gyp 是一个用于生成跨平台 C++ 编译配置的工具,它提供了一种统一的方式来构建 Node.js 程序中的本地 C++ 模块。当看到这个提示时,说明 gyp 命令执行成功,没有遇到错误。
npm 是 Node.js 的包管理器,用于安装、发布、卸载包,以及管理项目依赖关系。当我们使用 npm 安装包或构建项目时,有时会出现各种错误信息。在这个特定的错误提示中,如果最后显示 "ok",表示 gyp 命令已经成功执行,并且没有遇到任何问题。
这个提示的出现意味着 gyp 构建工具运行正常,这对于项目开发者来说是一个好消息。这意味着程序的本地 C++ 模块的编译和构建过程没有发生错误,可以继续进行后续的操作。
需要注意的是,如果出现其他错误提示,说明 gyp 命令可能遇到了问题,需要查看具体的错误信息来解决。可以根据错误信息进行排查和调试,以修复问题并确保构建过程正常进行。因此,开发者在遇到这类问题时应该查看完整的错误信息,而不仅仅关注是否以 "ok" 结尾。
npm ERR! code 1 npm ERR! path D:\长安qms\qms_manage_ui\node_modules\node-sass npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js npm ERR! Building: D:\Nodejs\node.exe D:\长安qms\qms_manage_ui\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= npm ERR! gyp info it worked if it ends with ok npm ERR! gyp verb cli [
It seems like you're facing an error while running the command `npm install` or `npm run build` in your project. The error message indicates that there is an issue with the `node-sass` module.
To resolve this issue, you can try the following steps:
1. Clear the npm cache by running the command:
```
npm cache clean --force
```
2. Delete the `node_modules` folder by running the command:
```
rm -rf node_modules
```
or
```
rmdir /s /q node_modules
```
3. Install the `node-sass` module again by running the command:
```
npm install node-sass
```
4. Try running the build command again:
```
npm run build
```
If the issue persists, make sure you have all the necessary dependencies installed and that your environment is set up correctly.
Let me know if this helps!
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![epub](https://img-home.csdnimg.cn/images/20210720083646.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)