主题 : jeecms10 vue install 报错
级别: 白丁
UID: 139213
积分:52 加为好友
威望: 2 精华: 0
主题:10 回复:30
注册时间:2021-10-19
在线时长:0
1#   发表于:2021-10-20 23:30:59  IP:171.7.*.*
npm install报错信息如下

npm ERR! code 7
npm ERR! path E:\Spaces_WebStorm\JEECMSx1.10.0_vue_src\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.2.0
npm ERR! gyp info using node@8.12.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.0 found at "D:\opensource\Python\Python310\python.exe"
npm ERR! gyp ERR! UNCAUGHT EXCEPTION
npm ERR! gyp ERR! stack TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function
npm ERR! gyp ERR! stack     at Object.promisify (internal/util.js:214:11)
npm ERR! gyp ERR! stack     at Object.<anonymous> (C:\Users\wurong\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\install.js:15:29)
npm ERR! gyp ERR! stack     at Module._compile (module.js:653:30)
npm ERR! gyp ERR! stack     at Object.Module._extensions..js (module.js:664:10)
npm ERR! gyp ERR! stack     at Module.load (module.js:566:32)
npm ERR! gyp ERR! stack     at tryModuleLoad (module.js:506:12)
npm ERR! gyp ERR! stack     at Function.Module._load (module.js:498:3)
npm ERR! gyp ERR! stack     at Module.require (module.js:597:17)
npm ERR! gyp ERR! stack     at require (internal/module.js:11:18)
npm ERR! gyp ERR! stack     at Object.self.commands.(anonymous function) [as install] (C:\Users\wurong\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\node-gyp.js:41:14)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "C:\\Users\\wurong\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd E:\Spaces_WebStorm\JEECMSx1.10.0_vue_src\node_modules\node-sass
npm ERR! gyp ERR! node -v v8.12.0
npm ERR! gyp ERR! node-gyp -v v8.2.0
npm ERR! gyp ERR! Node-gyp failed to build your package.
npm ERR! gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\wurong\AppData\Local\npm-cache\_logs\2021-10-20T14_46_08_769Z-debug.log
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
2#   发表于:2021-10-21 09:51:32  IP:59.203.*.*
依赖有问题】,node版本多少的
路漫漫其修远兮,吾将上下而求索!
级别: 白丁
UID: 139213
积分:52 加为好友
威望: 2 精华: 0
主题:10 回复:30
注册时间:2021-10-19
在线时长:0
3#   发表于:2021-10-21 16:06:06  IP:59.17.*.*
v8.12.0
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
4#   发表于:2021-10-21 16:22:06  IP:59.203.*.*
重新安装下依赖
路漫漫其修远兮,吾将上下而求索!
1 共1页