12
votes

Due to poor internet connection my atom packages won’t install from settings>preferences>install>packages. So I think I need to manually install them.

For example: I tried the repository from respective github page and cloned it in users>.atom>packages but this didn't work.

Any help? I love this text editor so it would be pretty handy if I could install more packages manually.

Any other ways are always welcome!

3

3 Answers

13
votes

In linux:

cd ~/.atom/packages
git clone https://github.com/url_to_your_package
cd your_package
npm install

You have to install npm first.

6
votes

There are a few ways, most are similar to this :

You can download the package, unzip or decompress, go to that folder and run: apm link that will create a symbolic link from that package to your ~/.atom/packages folder.

But ensure that you install all dependencies require by the package also, as if you dont have internet connection then you may encounter issues.

There some good information here i will quote for your convenience that outlines how to handle this :

When you manually download and extract the zip file you need to run apm install in the package's directory afterwards to pull in any dependencies. This will download all dependencies and place them in the node_modules folder and recursively pulls in their dependencies as well. Since this is not possible in your environment, you'll have to do that manually.

Recursively go over each package.json file. If it lists a package as a dependency search on npm6 for the package and follow the link to package's github page to read its package.json and repeat the whole process.

Hope this helps in anyway. Lemme know if i can help further once you have tried.

2
votes

to get npm, juste install the node.js, automatically npm will be installed,then run:

cd ~/.atom/packages

git clone https://github.com/package-name your_package
cd your_package
npm install

and it's done.