已升级并卸载有问题的背景npm软件包,然后安装了最新的。 结果显示以下错误:
错误信息errorfailedtocompilewith 3错误16336054336000 thesedependencieswerenotfound : (node :46156 )。 unhandledpromiserejectionwarning : unhandledpromiserejection (rejection id : ) : error : eno ent 3: nosuchfileordirrior . volume icon.icns ' [ node :46156 ] [ dep 0018 ] deprecation warning : unhandledpromiserejectionsaredeprecated.] promiserejectionsthatarenothandledwillterminatethenode.jsprocesswithanon-zero exit code .报告了某些依赖关系,但实际上在这些路径中找不到
解决方案可以删除所有node_modules,然后重新安装。 某些依赖项可能需要重新安装。 只装一个包是不行的。