3

我正在使用 ORM Prisma 进行项目。当我npm i在我的服务器(由 Plesk 托管)上使用 git 推送我的项目后,我遇到了下一个错误:

NPM 错误信息

当我npm i在本地项目上做时,一切都很好。

我尝试在服务器上安装旧版本(2.28.0),但显示相同的错误消息。

我还做了接下来的步骤:删除package-lock.jsonnode_modulesnpm cache clean --force然后npm i。但它总是同样的问题......

日志:

16491 verbose npm  v6.14.14
16492 error code ELIFECYCLE
16493 error syscall spawn
16494 error file sh
16495 error errno ENOENT
16496 error prisma@2.28.0 preinstall: `node scripts/preinstall-entry.js`
16496 error spawn ENOENT
16497 error Failed at the prisma@2.28.0 preinstall script.
16497 error This is probably not a problem with npm. There is likely additional logging output above.
16498 verbose exit [ 1, true ]
4

0 回答 0