stkvtflw
stkvtflw

Reputation: 13507

Can't find certain package in Package control: Install Package

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

Answers (8)

user6781093
user6781093

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.

  1. Go to Preferences > Package Control
  2. In the command palette, type Package Control: Add Repository
  3. A text box will appear at the bottom, paste the URL to the repository, i.e. https://github.com/username/repo.

Now that you have added the GitHub repository, you can add the package as you would have originally:

  1. Go to Preferences > Package Control
  2. In the Command Palette, type Package Control: Install Package
  3. In the dialog box, type the name of your package, i.e. 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

Aji Prasetyo
Aji Prasetyo

Reputation: 1

  1. open command pallette
  2. Package Control: install package -> enter
  3. you search Babel -> enter

good luck

Upvotes: 0

Preston
Preston

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

Unkas
Unkas

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

Kangarooo
Kangarooo

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

vaindil
vaindil

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

mohamed-ibrahim
mohamed-ibrahim

Reputation: 11137

  • Open Package Control Options(Commad+Shift+P) and add the repository if its not exist.
  • Open Package Control Again and choose Install package and write the package name which in your case its (babel-sublime) and you should find it.

enter image description here

Upvotes: 16

Owen
Owen

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

Related Questions