Linux command
npm-link 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Link current package globally
npm link
Link to global package
npm link [package-name]
Link local dependency
npm link [../path/to/package]
Unlink package
npm unlink [package-name]
说明
npm link symlinks packages for local development. Enables testing packages locally. The command creates global symlink. Then link into projects for development.
参数
- --help
- Display help information.
FAQ
What is the npm-link command used for?
npm link symlinks packages for local development. Enables testing packages locally. The command creates global symlink. Then link into projects for development.
How do I run a basic npm-link example?
Run `npm link` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --help do in npm-link?
Display help information.