当前位置:网站首页>NPM introduction link symbolic link

NPM introduction link symbolic link

2022-07-05 03:17:00 crayon-shin-chan

file :npm-link | npm Docs

1. brief introduction

npm link It's a kind of npm Through symbolic links , Methods of linking to existing directories

When you do not want to install packages in the current directory , have access to link Create a symbolic link , Link the existing package to the current directory

When you want to link the package under development to other directories , You can create a symbolic link in the global directory

npm link --help
npm link

Symlink a package folder

Usage:
npm link (in package dir)
npm link [<@scope>/]<pkg>[@<version>]

Options:
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer]
[-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
[--strict-peer-deps] [--no-package-lock]
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root]

alias: ln</
原网站

版权声明
本文为[crayon-shin-chan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140757150404.html