-
Notifications
You must be signed in to change notification settings - Fork 801
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
安装依赖报错 #161
Comments
没复现,要不你将 package.json 中的这行: Line 16 in 271f63f
改为: "postinstall": "pnpm build:pkg", |
有没有可能是我的版本问题呢 |
版本看起来没问题,按理说你将 |
刚在 nx 官方文档 看了下,可能是这条没满足吧!没关系,你卸载掉 nx 也不影响什么,它只是用来提高 monorepo 构建效率的 |
插件本身没问题,你可以手动 pnpm build:pkg 构建好相关插件,然后再 pnpm install 应该就可以了。 Lines 147 to 153 in 271f63f
稍后,我将针对你这个情况做一个降级的处理,项目中 scripts/postinstall.js 这个脚本本身也是为了暂时兼容这个 bug 的vue3-antdv-admin/scripts/postinstall.js Lines 1 to 26 in 271f63f
|
手动 pnpm build:pkg 构建好相关插件,然后再 pnpm install 应该就可以了 还是不行的 一样的报错 |
Bug report(问题描述)
Progress: resolved 1430, reused 1427, downloaded 0, added 2, done
node_modules/.pnpm/nx@18.1.2/node_modules/nx: Running postinstall script, failed in 551ms
.../.pnpm/nx@18.1.2/node_modules/nx postinstall$ node ./bin/post-install
│ E:\tem\vue3-antdv-admin-main\node_modules.pnpm\nx@18.1.2\node_modules\nx\src\native\index.js:244
│ throw loadError
│ ^
│ Error: The specified module could not be found.
│ \?\E:\tem\vue3-antdv-admin-main\node_modules.pnpm@nx+nx-win32-x64-msvc@18.1.2\node_modules@nx\nx-win32-x64-msvc\nx.win32-x64-msvc.node
│ at Module._extensions..node (node:internal/modules/cjs/loader:1452:18)
Steps to reproduce(问题复现步骤)
Screenshot or Gif(截图或动态图)
Link to minimal reproduction(最小可在线还原 demo)
Other relevant information(格外信息)
The text was updated successfully, but these errors were encountered: