Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.14 KB

File metadata and controls

25 lines (14 loc) · 1.14 KB

npm

Contents

npm link

You can link local packages together for local testing. npm link sets up a global reference which other packages can import. Run npm link in the dependency you want to import and then run npm link dependency-name in the application package. For more see the resource below.

yalc

This is an alternative to using link. This package helps manage some of the problems that can arise from npm | yarn link.

Specify Lockfile Version

If you require a specific package-lock.json version (in your build process for example) you can use npm i --lockfile-version X to generate a lock file with the given version. Replace X with the version you need, such as npm i --lockfile-version 2.