![](/img/trans.png)
[英]How can I use raw_input in the text editor Atom.io using the script Python 2.7.3?
[英]How can I manually download packages for atom editor and install them (manually)?
由於 inte.net 連接不佳,我的原子包無法從settings>preferences>install>packages
。 所以我想我需要手動安裝它們。
例如:我從相應的 github 頁面嘗試了存儲庫並將其克隆到users>.atom>packages
中,但這沒有用。
有什么幫助嗎? 我喜歡這個文本編輯器,所以如果我可以手動安裝更多的包,它會非常方便。
隨時歡迎任何其他方式!
在linux中:
cd ~/.atom/packages
git clone https://github.com/url_to_your_package
cd your_package
npm install
你必須先安裝npm。
有幾種方法,大多數都與此相似:
您可以下載軟件包,解壓縮或解壓縮,轉到該文件夾並運行:apm鏈接,它將創建從該軟件包到〜/ .atom / packages文件夾的符號鏈接。
但是請確保您還要安裝包所需的所有依賴項,就好像您沒有Internet連接那么您可能會遇到問題。
這里有一些很好的信息,我將引用您的方便,概述如何處理:
當您手動下載並解壓縮zip文件時,需要在程序包的目錄中運行apm install以引入任何依賴項。 這將下載所有依賴項並將它們放在node_modules文件夾中,並以遞歸方式提取它們的依賴項。 由於這在您的環境中是不可能的,因此您必須手動執行此操作。
遞歸遍歷每個package.json文件。 如果它在包的npm6上列出一個包作為依賴項搜索,並按照包的github頁面的鏈接來讀取它的package.json並重復整個過程。
無論如何,希望這會有所幫助。 Lemme知道一旦你嘗試過,我是否可以提供更多幫助。
得到npm,juste安裝node.js,自動安裝npm,然后運行:
cd ~/.atom/packages
git clone https://github.com/package-name your_package
cd your_package
npm install
它已經完成了。
從命令行:
apm install <github repo link>
其中 github 鏈接與您通常用於克隆存儲庫的鏈接相同。
apm install
文檔
$ apm help install
Usage: apm install [<package_name>...]
apm install <package_name>@<package_version>
apm install <git_remote>
apm install <github_username>/<github_project>
apm install --packages-file my-packages.txt
apm i (with any of the previous argument usage)
Install the given Atom package to ~/.atom/packages/<package_name>.
If no package name is given then all the dependencies in the package.json
file are installed to the node_modules folder in the current working
directory.
A packages file can be specified that is a newline separated list of
package names to install with optional versions using the
`package-name@version` syntax.
Options:
--check Check that native build tools are installed [boolean]
--verbose Show verbose debug information [boolean] [default: false]
--packages-file A text file containing the packages to install [string]
--production Do not install dev dependencies [boolean]
-c, --compatible Only install packages/themes compatible with this Atom version [string]
-h, --help Print this usage message
-s, --silent Set the npm log level to silent [boolean]
-q, --quiet Set the npm log level to warn [boolean]
Prefix an option with `no-` to set it to false such as --no-color to disable
colored output.
以下似乎在 MacOS 上對我有用
cd ~/.atom/packages
git clone https://github.com/url_to_your_package
cd your_package
apm install
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.