<!-- 譯者:Github@wizardforcel -->
# 開發Node模塊 #
Atom中的一些包是Node模塊,而不是Atom的包。如果你想要修改這些Node模塊,例如`atom-keymap`,你需要把它們鏈接到不同于普通Atom包的開發環境中。
## 把Node模塊鏈接到你的Aton開發環境 ##
下面是運行node模塊的本地版本的步驟,而不是Atom中的apm。我們使用`atom-keymap`作為一個例子:
```
$ git clone https://github.com/atom/atom-keymap.git
$ cd atom-keymap
$ npm install
$ npm link
$ apm rebuild # This is the special step, it makes the npm work with Atom's version of Node
$ cd WHERE-YOU-CLONED-ATOM
$ npm link atom-keymap
$ atom # Should work!
```
然后,當你修改了node模塊的代碼時,你必須運行`npm install`和`apm rebuild`。