Cannot find module ‘tslib’

依然范特西╮ 提交于 2021-02-10 14:21:55

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!