npm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| npm [2020/12/17 10:07] – chifek | npm [2023/09/14 06:06] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== What Is Npm Shrinkwrap And Why You Should Start Using It Right Now? ====== | + | [[npm shrinkwrap|npm shrinkwrap]] |
| - | + | ||
| - | + | ||
| - | I've recently talked to people who are mostly PHP developers and want to try Node.js. For installing and managing dependencies, | + | |
| - | + | ||
| - | NPM shrinkwrap lets you lock down the versions of installed packages and their descendant packages. It helps you use same package versions on all environments (development, | + | |
| - | + | ||
| - | + | ||
| - | ====== How To Use It? ====== | + | |
| - | + | ||
| - | + | ||
| - | NPM shrinkwrap is very simple to use. After installing packages using < | + | |
| - | + | ||
| - | < | + | |
| - | That's all! | + | |
| - | + | ||
| - | It should create new npm-shrinkwrap.json file with information about all packages you use. Don't forget to commit it! | + | |
| - | + | ||
| - | Next time, when someone calls npm install, it will install packages from npm-shrinkwrap.json and you will have the same environment on all machines. | + | |
| - | + | ||
| - | + | ||
| - | ====== How To Add/ | + | |
| - | + | ||
| - | + | ||
| - | Installing and updating packages is very simple. Just use < | + | |
| - | + | ||
| - | + | ||
| - | For more information click [[https:// | + | |
npm.1608199658.txt.gz · Last modified: 2023/09/14 06:06 (external edit)