From the npm-link documentation :
(从npm-link文档中 :)
In the local module directory:
(在本地模块目录中:)
$ cd ./package-dir
$ npm link
In the directory of the project to use the module:
(在要使用模块的项目目录中:)
$ cd ./project-dir
$ npm link package-name
Or in one go using relative paths:
(或一次性使用相对路径:)
$ cd ./project-dir
$ npm link ../package-dir
This is equivalent to using two commands above under the hood.
(这等效于在幕后使用上面的两个命令。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…