Reputation: 13507
I can't find this package in Package control. Looks like my list is outdated. https://github.com/babel/babel-sublime How can i fix it?
Sublime Text 3083
Upvotes: 27
Views: 16021
Reputation:
If you want to install babel-sublime but it is not included in package control it is in GitHub repository, it can be added manually.
Package Control: Add Repository
https://github.com/username/repo
.Now that you have added the GitHub repository, you can add the package as you would have originally:
Package Control: Install Package
babel-sublime
Auto complete will find if it is present. If that is the case, press enter and wait for it to install, then restart sublime. It will be installed upon restart.PS: the same way to install any package from GitHub you can Google sublime plugins to find some really cool ones
Upvotes: 10
Reputation: 1
good luck
Upvotes: 0
Reputation: 8187
My version of Sublime Text 3 was old. I solved this problem by simply running the command:
sudo apt-get update
which will update sublime after sublime v 3.0, restarted sublime, and all was good.
Upvotes: 0
Reputation: 3710
In Sublime Text 3, go to View, Show Console. Paste in the code below and hit Enter.
import urllib.request,os,hashlib; h =
'df21e130d211cfc94d9b0905775a7c0f' +
'1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-
package'; ipp = sublime.installed_packages_path();
urllib.request.install_opener( urllib.request.build_opener(
urllib.request.ProxyHandler()) ); by = urllib.request.urlopen(
'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh =
hashlib.sha256(by).hexdigest(); print('Error validating download (got
%s instead of %s), please try manual install' % (dh, h)) if dh != h
else open(os.path.join( ipp, pf), 'wb' ).write(by)
the solution was found here: http://www.storybench.org/install-babel-packages-sublime-text-3/
Upvotes: 0
Reputation: 228
I had to add it 2 times, each time closing. Then it finally worked and got all packages. Thats the only solution i found. Some glitch in Sublime.
Heres is info how to install full packages list https://packagecontrol.io/installation
Upvotes: 0
Reputation: 7854
I had a similar problem with a different package, this is the only result I found when searching so I'll post my answer.
I already had the package installed!
I apparently installed it previously then forgot I had done so. Check your packages list if you can't find one! Command Palette > Package Control: List Packages
Upvotes: 41
Reputation: 11137
Upvotes: 16
Reputation: 1662
Not sure what the issue with Sublime is, but if anyone else gets stuck on this you can just install from Github directly. Works for babel-sublime and should work for other packages.
1) Find the relevant repo (assuming open source)
https://github.com/babel/babel-sublime
2) Clone into your packages folder
On a mac this would be
$ cd /Users/(username)/Library/Application\ Support/Sublime\ Text\ 2/Packages/
$ git clone https://github.com/babel/babel-sublime
And that was it for me - restart Sublime Text and the package is available.
Upvotes: 18