-
Notifications
You must be signed in to change notification settings - Fork 382
Error reading plugin: heroku-local #1690
Comments
Installing npm is a red herring—something else went wrong here though it's hard to tell what. I wonder if perhaps it only had partially installed the plugin or was updating it while it attempted to run it. |
I was getting this as well. Log:
|
+1 @Murkey |
I'm getting this same "Error reading plugin: heroku-local" error now. The syntax error that is thrown is a little different but it's along the same lines. When I check the JS file it all looks good: /Users/USER/.heroku/node_modules/heroku-local/lib/download.js:17 SyntaxError: Unexpected token ) |
I'm pretty sure npm just fails at downloading sometimes. I've seen this error a handful of times myself but it's not reproducible. If someone continually gets this error let me know. Because this package exists, I don't think I'm the only one: https://github.com/AlexCline/npm-install-missing. The good news is I have some retry logic around this to autorepair broken package downloads. This should make this a bit annoying, but everything should still work assuming the second download passes. Because npm 3 works totally differently when downloading these sub-dependencies, I'd like to try to move to that to see if it fixes the problem. |
Not sure what's happening but I'm stuck & it's super frustrating.
|
This fixed it:
|
@reggi +1 |
I ran into the same issue as @reggi. Removing |
I had a similar problem (on Linux):
And moving/removing |
Cool |
removing |
Just to contribute my part to the great people of heroku. This happened to me when running promote ( Rerunning the command works well and gives no errors, but this got me worried a little. Here are the relevant lines from the log:
|
@DannyBen I think your issue was resolved. Do you continue to get it after a |
Well, I only got it once, and it resolved itself after simply rerunning. I haven't seen this error since, will post here again if I do. EDIT:
|
yeah that's exactly what happened, the update had the fix but it didn't run the updated version of the CLI until the next time you ran it. |
I don't know exactly how to fix this issue |
try again, you were probably experiencing this https://status.heroku.com/incidents/851 |
please check @Murkey 's solution, it worked for me |
Removing ~/.heroku fixed it for me as well. |
This just happened to me, seemingly spontaneously? Yesterday,
Unfortunately, neither @Murkey's solution (
Finally, I tried wiping and then reprovisioning my dev VM from scratch (I use Vagrant). The heroku CLI seemed to install successfully:
...but none of the plugins did:
(...snipping ~400 similar lines...)
Any idea what might be going on? Is there a server-side issue that could be preventing the plugins from installing correctly? Is there anything else I can try in the mean time? |
@brookinc I suddenly started getting the same errors None of the solutions described here worked 😭 |
I shipped a change earlier to make plugin loading happen in parallel, that was probably causing this. I rolled it back, so can you try deleting |
Hi @dickeyxxx, after your comment I uninstalled everything and tried to re-install... no dice. here's the output: ~ heroku login
Heroku CLI submits usage information back to Heroku. If you would like to disable this, set `skip_analytics: true` in /Users/David/.heroku/config.json
heroku-cli: Installing Toolbelt v4... done
For more information on Toolbelt v4: https://github.com/heroku/heroku-cli
heroku-cli: Adding dependencies... 5.13 MB/5.13 MB
heroku-cli: Adding dependencies... 2.57 MB/2.57 MB
heroku-cli: Updating plugins...heroku-cli: Installing core plugins...module.js:341
throw err;
^
Error: Cannot find module 'heroku-apps'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/private/var/folders/1s/pbmq_7xs2333k8hwjl2kxxmm0000gn/T/heroku-script-812764627:2:15)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
heroku-cli: Installing core plugins (retrying)...module.js:341
throw err;
^
Error: Cannot find module 'heroku-apps'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/private/var/folders/1s/pbmq_7xs2333k8hwjl2kxxmm0000gn/T/heroku-script-998557565:2:15)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
!
▸ Error reading plugin: heroku-apps
▸ exit status 1
▸ module.js:341
▸ throw err;
▸ ^
▸
▸ Error: Cannot find module 'heroku-apps'
▸ at Function.Module._resolveFilename (module.js:339:15)
▸ at Function.Module._load (module.js:290:25)
▸ at Module.require (module.js:367:17)
▸ at require (internal/module.js:16:19)
▸ at Object.<anonymous> (/private/var/folders/1s/pbmq_7xs2333k8hwjl2kxxmm0000gn/T/heroku-script-305538232:2:15)
▸ at Module._compile (module.js:413:34)
▸ at Object.Module._extensions..js (module.js:422:10)
▸ at Module.load (module.js:357:32)
▸ at Function.Module._load (module.js:314:12)
▸ at Function.Module.runMain (module.js:447:10)
! error getting commands pid 2977 exit 1``` |
I am having the same problems as @brookinc and @DavidVII. Just started happening today after I ran
I tried reinstalling the CLI, rm -rf ~/.heroku and still nothing, it seems to fail installing core plugins EDIT: @dickeyxxx I tried removing the node_modules directory from ~/.heroku and I'm still having the same problems. We seem to be getting an infinite loop of heroku-cli trying to install core plugins and it never finds the modules for them. |
can you show me the output of |
Hi @dickeyxxx -- thanks for the reply. I ran Even |
OK I'm going to roll back the changes I pushed out earlier entirely |
@dickeyxxx, no heroku commands in the CL are working, it just tries to install core plugins everytime you throw it a heroku command |
it's rolling back now, if you update to 4.29.4-8867943 it should be fixed |
@dickeyxxx, I just reinstalled the toolbelt to make sure, everything is working now. Thanks a bunch! Also, just wanted to point out, before the rollback heroku-toolbelt after installation was failing to read the config.json in ~/.heroku/config.json, I'm not sure if that was part of the problem or not as I did not get that error this time around. |
Awesome! Thank you, @dickeyxxx! All seems to be working well again. |
@traducer I noticed that too and put a patch in for that. Sorry for the trouble here! |
When I uninstall ( |
@brookinc it's a little confusing, there is a v3 and v4 branch of the CLI, you should have both of them. |
Hmm, okay. Should the uninstall and reinstall commands referenced above do the trick, then? I'm not sure what else to try. |
delete |
btw do any of you happen to have |
@dickeyxxx I do.
|
Thanks, I also have NODE_PATH set:
|
yeah I'm pretty sure |
er , iam poor with english, so, i will paste some 'log' here:
After i installed the pkg file, i typed heroku in my terminal and an error came out:
error
the log files
and i find nothing wrong wtih the js file
Then i went to your github page
the moment i saw
npm install heroku-cli-util --save
.....:)Nobody tells me heroku toolbelt has changed itself from a ruby gem to npm!
At least not your site
so after i install npm
everthing goes fine now.
detail does matter! :)
i hope i do some help here.
The text was updated successfully, but these errors were encountered: