如何手动下载原子编辑器软件包并手动安装? [英] How can I manually download packages for atom editor and install them (manually)?

查看:123
本文介绍了如何手动下载原子编辑器软件包并手动安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于互联网连接不良,无法从settings>preferences>install>packages安装我的原子软件包.所以我认为我需要手动安装它们.

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.

例如:我尝试从相应的github页面尝试存储库,并将其克隆到users>.atom>packages中,但这没有用.

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.

总是欢迎其他方式!

推荐答案

有几种方法,大多数与此类似:

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

您可以下载软件包,解压缩或解压缩,然后转到该文件夹 并运行:apm链接,它将从该包中创建一个符号链接 到您的〜/.atom/packages文件夹.

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 :

手动下载并解压缩zip文件时,需要运行 之后将apm install安装在软件包的目录中以提取任何 依赖关系.这将下载所有依赖项并将它们放在 node_modules文件夹并以递归方式拉入它们的依赖项 出色地.由于这在您的环境中是不可能的,因此您必须 手动完成.

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.

递归遍历每个package.json文件.如果将软件包列为 在npm6上进行相关性搜索以获取该软件包,然后点击链接 包的github页面读取其package.json并重复整个过程 过程.

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.

希望无论如何这都会有所帮助. Lemme知道一旦您尝试了我是否可以进一步提供帮助.

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

这篇关于如何手动下载原子编辑器软件包并手动安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆