问题
I’m new to gitbash and I’ve been getting this error for a few weeks now since my first successful attempt at logging in to heroku here via gitbash
I tried reinstalling gitbash and even installing typescript but it didn’t work.
回答1:
After a good night of sleep, I found the solution! I removed the heroku directory in home dir local. See middle of article : https://github.com/heroku/cli/issues/672
回答2:
I believe the 64bit version has a problem.
I uninstalled the 64bit version and I installed 32bit and it worked
回答3:
I agree and face a similar issue. I have tried to run the install exe both in admin mode and user mode (with admin rights). Same issue. In brief Heroku is installed correctly but then it needs an update but the update does not finish appropriately (fails to remove node.exe) I believe the heroku installation became corrupted and once your try to run it, you have the following errors:
heroku-cli: Updating to 6.15.5-1f03166... 10.1 MB/10.1 MB ! remove C:\Users\Franck\AppData\Local\heroku\client\bin\node.exe: Acces Denied Error: Cannot find module 'tslib'
回答4:
I had the same error as Franck92, after trying a few times to update it went through and it is working now.
来源:https://stackoverflow.com/questions/48801698/cannot-find-module-tslib