当我尝试在firebase上部署react应用程序时,npm运行构建返回一个错误


npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:UsersMynameDesktopgodpackage.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:UsersMynameDesktopgodpackage.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersMynameAppDataRoamingnpm-cache_logs2021-09-02T07_53_41_547Z-debug.log```

您应该检查运行npm install的目录中是否有package.json文件,因为该错误与npm无关。

相关内容

  • 没有找到相关文章

最新更新