heroku npm ERR!当我推送项目以部署GitHub分支时,出现代码EBADPLATFORM

dgjrabp2  于 2022-11-13  发布在  Git
关注(0)|答案(1)|浏览(239)

当我推送项目以部署GitHub分支时,出现以下错误:

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64
npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/npmcache.SSqKk/_logs/2021-05-22T14_25_47_923Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
**npm ERR! contactKeepar@1.0.0 heroku-postbuild: `NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client`**
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contactKeepar@1.0.0 Heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/npmcache.SSqKk/_logs/2021-05-22T14_25_47_980Z-debug.log
-----> Build failed

*****heroku-postbuild: `NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client`*****
aurhwmvo

aurhwmvo1#

1.删除package-lock.json(和节点模块)

  1. npm安装
    1.将新的package-lock.json推送到GitHub
    而且应该能用🎉

相关问题