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

环境配置失败 #39

Closed
yltx opened this issue May 7, 2022 · 11 comments
Closed

环境配置失败 #39

yltx opened this issue May 7, 2022 · 11 comments

Comments

@yltx
Copy link

yltx commented May 7, 2022

如题 折腾了挺长时间 结果就这样了……
PS E:\MaaAsstElectronUI> yarn
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 373ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 5s 518ms
➤ YN0000: ┌ Link step
➤ YN0007: │ electron@npm:17.1.2 must be built because it never has been before or the last one failed
➤ YN0007: │ ref-napi@npm:3.0.3 must be built because it never has been before or the last one failed
➤ YN0007: │ @seorii/win32-displayconfig@npm:0.1.1 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.14.27 must be built because it never has been before or the last one failed
➤ YN0007: │ vue-demi@npm:0.12.4 [4f0a8] must be built because it never has been before or the last one failed
➤ YN0007: │ es5-ext@npm:0.10.59 must be built because it never has been before or the last one failed
➤ YN0009: │ es5-ext@npm:0.10.59 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\yltx\AppData\Local\Temp\xfs-3aa34e92\build.log)
➤ YN0009: │ electron@npm:17.1.2 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\yltx\AppData\Local\Temp\xfs-1d9e7e59\build.log)
➤ YN0009: │ esbuild@npm:0.14.27 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\yltx\AppData\Local\Temp\xfs-f40c5451\build.log)
➤ YN0009: │ ref-napi@npm:3.0.3 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\yltx\AppData\Local\Temp\xfs-1a17aedd\build.log)
➤ YN0009: │ vue-demi@npm:0.12.4 [4f0a8] couldn't be built successfully (exit code 1, logs can be found here: C:\Users\yltx\AppData\Local\Temp\xfs-864ba569\build.log)
➤ YN0009: │ @seorii/win32-displayconfig@npm:0.1.1 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\yltx\AppData\Local\Temp\xfs-c677d184\build.log)
➤ YN0007: │ electron-acrylic-window@npm:0.5.11 must be built because it never has been before or the last one failed
➤ YN0007: │ ffi-napi@npm:4.0.3 must be built because it never has been before or the last one failed
➤ YN0009: │ electron-acrylic-window@npm:0.5.11 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\yltx\AppData\Local\Temp\xfs-166c50b5\build.log)
➤ YN0009: │ ffi-napi@npm:4.0.3 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\yltx\AppData\Local\Temp\xfs-c322350b\build.log)
➤ YN0000: └ Completed in 15s 467ms
➤ YN0000: Failed with errors in 21s 523ms

@ChingCdesu
Copy link
Member

可能装依赖的时候需要visual studio,我自己是原来就装了vs,所以没试过没装vs下的情况

我的环境:
node 16
yarn v1
visual studio 2022

@bakashigure
Copy link
Member

我的环境同上,node版本高于16时打包会失败。
node-gyp 还需要python3作为依赖。

@yltx
Copy link
Author

yltx commented May 8, 2022

可能装依赖的时候需要visual studio,我自己是原来就装了vs,所以没试过没装vs下的情况

我的环境: node 16 yarn v1 visual studio 2022

问题是我也有vs啊

@yltx
Copy link
Author

yltx commented May 8, 2022

我的环境同上,node版本高于16时打包会失败。 node-gyp 还需要python3作为依赖。

我是node v17.1.0
yarn v1.22.15

@ChingCdesu
Copy link
Member

node-gyp和node 17确实有兼容性问题,和electron ffi-napi的兼容性问题还未解决。所以我们降级成node16了
nodejs/node-gyp#2543

@yltx
Copy link
Author

yltx commented May 8, 2022

淦 但是我自己还有项目啊 完全不想降级啊

@ChingCdesu
Copy link
Member

ChingCdesu commented May 8, 2022

淦 但是我自己还有项目啊 完全不想降级啊

考虑使用一下虚拟环境,可能有帮助(

@bakashigure
Copy link
Member

有没有可能 node 也有版本管理工具

@bakashigure
Copy link
Member

windows上可以使用nvm进行node的版本管理。不过这可能并不能对解决你的问题提供帮助,我更认为是你本地的环境有问题,在我这里能跑啊

@yltx
Copy link
Author

yltx commented May 9, 2022

windows上可以使用nvm进行node的版本管理。不过这可能并不能对解决你的问题提供帮助,我更认为是你本地的环境有问题,在我这里能跑啊

我本地的环境已经修过一次了 不修的话输npm、node、yarn都识别不出来是命令

@yltx
Copy link
Author

yltx commented May 9, 2022

淦 但是我自己还有项目啊 完全不想降级啊

考虑使用一下虚拟环境,可能有帮助(

用了 然后我wsl环境也寄了

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