找不到模块Heroku CLI package.json

时间:2018-03-13 22:54:00

标签: heroku

几个月前我在MacOS上安装了Heroku CLI,并且今天尝试使用命令行工具遇到了这个错误:

Error: Cannot find module '{user profile}/.local/share/heroku/client/6.15.25-635e5c6/package.json'
at Function.Module._resolveFilename (module.js:555:15)
at Function.Module._load (module.js:482:25)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at run ({user profile}/.local/share/heroku/client/6.15.25-635e5c6/node_modules/@cli-engine/engine/lib/cli.js:82:22)
at Object.<anonymous> ({user profile}/.local/share/heroku/client/6.15.25-635e5c6/bin/heroku.js:7:1)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)

我尝试了brew uninstall heroku/brew/heroku,然后重新安装,没有更改错误。

1 个答案:

答案 0 :(得分:1)

我在GitHub上发现this问题修复了它。

修复只是删除~/.local/share/heroku/client,它正常工作正常。