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

编译问题 #379

Open
tinywaferShark opened this issue Jun 19, 2024 · 0 comments
Open

编译问题 #379

tinywaferShark opened this issue Jun 19, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@tinywaferShark
Copy link

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

您好,我之前没有进行过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
@tinywaferShark tinywaferShark added the help wanted Extra attention is needed label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant