Linux command
npm-unlink 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Unlink global package
npm unlink -g [package]
Unlink local package
npm unlink [package]
Unlink current package globally
npm unlink
说明
npm unlink removes a linked package. It's the opposite of npm link, removing the symlink between packages or removing a globally linked package. This is an alias for "npm uninstall" but is semantically used to undo npm link operations.
参数
- -g, --global
- Unlink globally.
- --no-save
- Don't update package.json.
FAQ
What is the npm-unlink command used for?
npm unlink removes a linked package. It's the opposite of npm link, removing the symlink between packages or removing a globally linked package. This is an alias for "npm uninstall" but is semantically used to undo npm link operations.
How do I run a basic npm-unlink example?
Run `npm unlink -g [package]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -g, --global do in npm-unlink?
Unlink globally.