jzfai / vue3-admin-plus

👏 An amazing admin framework of vue3
MIT License
848 stars 203 forks source link

下载代码安装包运行报错 #87

Closed zhangwei900808 closed 1 year ago

zhangwei900808 commented 1 year ago

错误信息:

✘ [ERROR] Could not resolve "dom-zindex"

    node_modules/.pnpm/vxe-table@4.5.4_vue@3.3.4+xe-utils@3.5.12/node_modules/vxe-table/es/tools/utils.js:3:22:
      3 │ import DomZIndex from 'dom-zindex';
        ╵                       ~~~~~~~~~~~~

  You can mark the path "dom-zindex" as external to exclude it from the bundle, which will remove
  this error.

版本信息:

node:v18.15.0
npm:9.5.0
jzfai commented 1 year ago

实测 node 18.17.1 pnpm 8.6.12 正常的

如果 有问题,请删除 node_moduel重新安装下

zhangwei900808 commented 1 year ago

大佬,我删除了,重新装都不行,而且我使用n安装16.20.2也不行

zhangwei900808 commented 1 year ago

我使用v18安装node_modules包都没问题,使用pnpm run dev就报错:

  VITE v4.4.9  ready in 963 ms

  ➜  Local:   http://localhost:5005/
  ➜  Network: http://172.16.12.11:5005/
  ➜  press h to show help
✘ [ERROR] Could not resolve "dom-zindex"

    node_modules/.pnpm/vxe-table@4.5.4_vue@3.3.4+xe-utils@3.5.12/node_modules/vxe-table/es/tools/utils.js:3:22:
      3 │ import DomZIndex from 'dom-zindex';
        ╵                       ~~~~~~~~~~~~

  You can mark the path "dom-zindex" as external to exclude it from the bundle, which will remove
  this error.
jzfai commented 1 year ago

个人感觉是你电脑环境出现了问题,可以换台电脑,或 同事帮忙安装,看看

zhangwei900808 commented 1 year ago

不会吧,我的电脑是macbook pro m1max,我再看看吧

image
zhangwei900808 commented 1 year ago

@jzfai 解决了,我把pnpm升级到8.6.12就OK了