Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

出现以下错误如何解决? #2

Open
CoolToneSummer opened this issue May 14, 2023 · 3 comments
Open

出现以下错误如何解决? #2

CoolToneSummer opened this issue May 14, 2023 · 3 comments

Comments

@CoolToneSummer
Copy link

10% building 2/2 modules 0 activeC:\Users\23511\Desktop\bs\vue3_serial\node_modules\vue-cli-plugin-electron-builder\node_modules\semver\classes\semver.js:38
throw new TypeError(Invalid Version: ${version})
^

TypeError: Invalid Version: 12

@binkzhou
Copy link
Owner

可能是你的node版本太低了

@u1020092532
Copy link

一大堆报错,npm install报错An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild 'D:\xiangmumulu\hyk-electron\vue3_serial-0.1.0\node_modules@serialport\bindings'.
Error: Could not find any Visual Studio installation to use,环境装了好几遍了

@binkzhou
Copy link
Owner

一大堆报错,npm install报错An unhandled error occurred inside electron-rebuild node-gyp failed to rebuild 'D:\xiangmumulu\hyk-electron\vue3_serial-0.1.0\node_modules@serialport\bindings'. Error: Could not find any Visual Studio installation to use,环境装了好几遍了

node-gyp 安装需要vs2015等一些编译环境,你可以去网上搜索一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants