rubickCenter / rubick

🔧 Electron based open source toolbox, free integration of rich plug-ins. 基于 electron 的开源工具箱,自由集成丰富插件。
https://rubickcenter.github.io/docs
MIT License
7.99k stars 837 forks source link

编译问题 #379

Open tinywaferShark opened 5 months ago

tinywaferShark commented 5 months ago

任何开发建议、交流学习都可以

您好,我之前没有进行过js的开发和编译 我尝试使用yarn install 和yarn build编译,但存在编译问题

yarn run v1.22.22
$ vue-cli-service build
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme

⠋  Building for production...Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
⠧  Building for production...

 ERROR  Failed to compile with 2 errors                                                                                                                                                                   1:46:52 AM

 error  in ./node_modules/npm/bin/npm-cli.js

Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> #!/usr/bin/env node
| ;(function () { // wrapper in case we're in module_context mode
|   // windows: running "npm blah" in this folder will invoke WSH, not node.

 @ ./node_modules/npm/lib/npm.js 484:4-32
 @ ./src/core/plugin-handler/index.ts
 @ ./src/core/index.ts
 @ ./src/renderer/plugins-manager/index.ts
 @ ./node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--15-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/renderer/App.vue?vue&type=script&setup=true&lang=ts
 @ ./src/renderer/App.vue?vue&type=script&setup=true&lang=ts
 @ ./src/renderer/App.vue
 @ ./src/renderer/main.ts
 @ multi ./src/renderer/main.ts

 error  in ./node_modules/extract-file-icon/build/Release/addon.node

Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)

 @ ./node_modules/extract-file-icon/dist/index.js 5:14-52
 @ ./src/core/app-search/win.ts
 @ ./src/core/app-search/index.ts
 @ ./src/renderer/plugins-manager/index.ts
 @ ./node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--15-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/renderer/App.vue?vue&type=script&setup=true&lang=ts
 @ ./src/renderer/App.vue?vue&type=script&setup=true&lang=ts
 @ ./src/renderer/App.vue
 @ ./src/renderer/main.ts
 @ multi ./src/renderer/main.ts

 ERROR  Build failed with errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

工具具体版本为

root@fb9f5a27d968:~/Project/rubick# npm --version
8.19.4
root@fb9f5a27d968:~/Project/rubick# node --version
v16.20.2
root@fb9f5a27d968:~/Project/rubick# python --version
Python 3.9.19
root@fb9f5a27d968:~/Project/rubick# yarn --version
1.22.22