Software: Apache. PHP/7.3.33 uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) Safe-mode: OFF (not secure) /opt/alt/alt-nodejs12/root/usr/lib/node_modules/npm/docs/public/cli-commands/npm-link/ drwxr-xr-x |
Viewing file: Select action/file-type: npm linkSymlink a package folderSynopsis
DescriptionPackage linking is a two-step process. First, Next, in some other location, Note that The package name can be optionally prefixed with a scope. See When creating tarballs for This is handy for installing your own stuff, so that you can work on it and test it iteratively without having to continually rebuild. For example:
Now, any changes to ~/projects/node-redis will be reflected in ~/projects/node-bloggy/node_modules/node-redis/. Note that the link should be to the package name, not the directory name for that package. You may also shortcut the two steps in one. For example, to do the above use-case in a shorter way:
The second line is the equivalent of doing:
That is, it first creates a global link, and then links the global
installation target into your project's Note that in this case, you are referring to the directory name, If your linked package is scoped (see
See Also👀 Found a typo? Let us know! The current stable version of npm is here. To upgrade, run: To report bugs or submit feature requests for the docs, please post here. Submit npm issues here. |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0977 ]-- |