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

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

问题描述

由于互联网连接不良,我的 atom 包无法从 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.

任何其他方式总是受欢迎的!

Any other ways are always welcome!

推荐答案

有几个方法,大部分都是这样的:

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

你可以下载压缩包,解压或者解压,进入那个文件夹并运行: apm link 将从该包创建符号链接到您的 ~/.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 以拉入任何依赖关系.这将下载所有依赖项并将它们放在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.

无论如何希望这会有所帮助.让我知道如果你尝试过,我是否可以提供进一步的帮助.

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

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

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