jeecgboot / JeecgBoot

🔥「企业级低代码平台」前后端分离架构SpringBoot 2.x/3.x,SpringCloud,Ant Design&Vue3,Mybatis,Shiro,JWT。强大的代码生成器让前后端代码一键生成,无需写任何代码! 引领新的开发模式,引入AI模型能力 OnlineCoding->代码生成->手工MERGE,帮助Java项目解决70%重复工作,让开发更关注业务,既能快速提高效率,帮助公司节省成本,同时又不失灵活性。
http://www.jeecg.com
Apache License 2.0
40.62k stars 14.83k forks source link

pnpm install后pnpm serve:Command failed with ENOENT: serve spawn serve ENOENT #6780

Closed yilongmd closed 1 year ago

yilongmd commented 1 year ago
版本号:

vue3 3.5.5

问题描述:

pnpm install 后 pnpm serve 报错: ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command failed with ENOENT: serve spawn serve ENOENT 环境: MacOS Now using node v16.20.0 (npm v8.19.4)

截图&代码:

 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command failed with ENOENT: serve spawn serve ENOENT

`pnpm install  WARN  deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead  WARN  deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility  WARN  deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated  WARN  deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated  WARN  deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated  WARN  deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated Packages: +1905 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Packages are hard linked from the content-addressable store to the virtual store. Content-addressable store is at: /Users/yilong/Library/pnpm/store/v3 Virtual store is at: node_modules/.pnpm Progress: resolved 1965, reused 1903, downloaded 0, added 1905, done

dependencies:

devDependencies:

 WARN  Issues with peer dependencies found . ├─┬ stylelint-config-prettier 9.0.5 │ └── ✕ unmet peer stylelint@">= 11.x < 15": found 15.10.3 └─┬ @qiaoqiaoyun/drag-free 1.1.4 └─┬ vue3-colorpicker 2.2.2 └── ✕ unmet peer @vueuse/core@^10.1.2: found 6.9.2 in @qiaoqiaoyun/drag-free

Done in 26s `

zhangdaiscott commented 1 year ago

应该是你的环境问题,你可以删除依赖重新安装试试,具体原因不清楚,我们无法重现

yilongmd commented 11 months ago

我也出现了这样的问题在这个版本下: MacOS Now using node v16.20.0 删除依赖,通过nvm切换的18版本,解决了该问题