HUANGXIAN
HUANGXIAN
  • 发布:2023-05-04 15:46
  • 更新:2023-05-05 11:01
  • 阅读:680

请问一下这是什么问题,执行yarn install安装的时候出现的报错

分类:uni-app

F:\HUANGXIAN\item\erp-wx>yarn install
yarn install v1.22.19
warning package.json: No license field
warning uni-preset-vue@0.0.0: No license field
[1/4] Resolving packages...
warning unocss > @unocss/preset-web-fonts > ohmyfetch > undici@5.22.0: [WARNING] Use 5.21.2 instead of 5.22.0, reason: https://github.com/nodejs/undici/pull/2091
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@dcloudio/uni-h5 > @vue/server-renderer@3.2.33" has incorrect peer dependency "vue@3.2.33".
warning "@dcloudio/uni-app > @dcloudio/uni-cloud > @dcloudio/uni-cli-shared > autoprefixer@10.4.7" has unmet peer dependency "postcss@^8.1.0".
warning "@dcloudio/uni-app > @dcloudio/uni-cloud > @dcloudio/uni-cli-shared > postcss-import@14.1.0" has unmet peer dependency "postcss@^8.0.0".
warning "@dcloudio/uni-app > @dcloudio/uni-cloud > @dcloudio/uni-cli-shared > postcss-modules@4.3.1" has unmet peer dependency "postcss@^8.0.0".
warning "@dcloudio/uni-app > @dcloudio/uni-cloud > @dcloudio/uni-cli-shared > postcss-modules > postcss-modules-extract-imports@3.0.0" has unmet peer dependency "postcss@^8.1.0".
warning "@dcloudio/uni-app > @dcloudio/uni-cloud > @dcloudio/uni-cli-shared > postcss-modules > postcss-modules-local-by-default@4.0.0" has unmet peer dependency "postcss@^8.1.0".
warning "@dcloudio/uni-app > @dcloudio/uni-cloud > @dcloudio/uni-cli-shared > postcss-modules > postcss-modules-scope@3.0.0" has unmet peer dependency "postcss@^8.1.0".
warning "@dcloudio/uni-app > @dcloudio/uni-cloud > @dcloudio/uni-cli-shared > postcss-modules > postcss-modules-values@4.0.0" has unmet peer dependency "postcss@^8.1.0".
warning "@dcloudio/uni-app > @dcloudio/uni-cloud > @dcloudio/uni-cli-shared > postcss-modules > postcss-modules-local-by-default > icss-utils@5.1.0" has unmet peer dependency "postcss@^8.1.0".
warning " > sass-loader@10.0.1" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
[4/4] Building fresh packages...
[-/3] ⠐ waiting...
[-/3] ⠐ waiting...
error F:\HUANGXIAN\item\erp-wx\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: F:\HUANGXIAN\item\erp-wx\node_modules\node-sass
Output:
Building: F:\HUANGXIAN\bin\nodejs\node.exe F:\HUANGXIAN\item\erp-wx\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'F:\HUANGXIAN\bin\nodejs\node.exe',
gyp verb cli 'F:\HUANGXIAN\item\erp-wx\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@16.14.2 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (F:\HUANGXIAN\item\erp-wx\node_modules\which\which.js:13:12)
gyp verb which failed at F (F:\HUANGXIAN\item\erp-wx\node_modules\which\which.js:68:19)
gyp verb which failed at E (F:\HUANGXIAN\item\erp-wx\node_modules\which\which.js:80:29)
gyp verb which failed at F:\HUANGXIAN\item\erp-wx\node_modules\which\which.js:89:16
gyp verb which failed at F:\HUANGXIAN\item\erp-wx\node_modules\isexe\index.js:42:5
gyp verb which failed at F:\HUANGXIAN\item\erp-wx\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21)
gyp verb which failed python2 Error: not found: python2
gyp verb which failed at getNotFoundError (F:\HUANGXIAN\item\erp-wx\node_modules\which\which.js:13:12)
gyp verb which failed at F (F:\HUANGXIAN\item\erp-wx\node_modules\which\which.js:68:19)
gyp verb which failed at E (F:\HUANGXIAN\item\erp-wx\node_modules\which\which.js:80:29)
gyp verb which failed at F:\HUANGXIAN\item\erp-wx\node_modules\which\which.js:89:16
gyp verb which failed at F:\HUANGXIAN\item\erp-wx\node_modules\isexe\index.js:42:5
gyp verb which failed at F:\HUANGXIAN\item\erp-wx\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) {
gyp verb which failed code: 'ENOENT'
gyp verb which failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which succeeded python F:\HUANGXIAN\tool\python\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: F:\HUANGXIAN\tool\python\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (node:child_process:399:12)
gyp ERR! stack at ChildProcess.emit (node:events:526:28)
gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
gyp ERR! System Windows_NT 10.0.22621
gyp ERR! command "F:\HUANGXIAN\bin\nodejs\node.exe" "F:\HUANGXIAN\item\erp-wx\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd F:\HUANGXIAN\item\erp-wx\node_modules\node-sass
gyp ERR! node -v v16.14.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

F:\HUANGXIAN\item\erp-wx>yarn run dev:mp-weixin
yarn run v1.22.19
warning package.json: No license field
$ uni -p mp-weixin
请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。若要正式发布,请点击发行菜单或使用 cli 发布命令进行发布
正在编译中...
(node:25528) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at F:\HUANGXIAN\item\erp-wx\node_modules\vuex\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use node --trace-deprecation ... to show where the warning was created)

uni-app 有新版本发布,请执行 npx @dcloudio/uvm alpha 更新,更新日志详见:https://download1.dcloud.net.cn/hbuilderx/changelog/3.8.1.20230428-alpha.html
vite v2.9.14 building for development...
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
[plugin:unocss:transformers:pre] Cannot read properties of undefined (reading 'join')
at components/loading-page/index.vue:1:0

2023-05-04 15:46 负责人:无 分享
已邀请:
DCloud_uniCloud_CRL

DCloud_uniCloud_CRL

需要你本地安装python环境。

要回复问题请先登录注册