Comments (2)
I could see the usefulness of something like this, but this one is a bit too opinionated and has a lot of incorrect statements*. I'd rather link to something more generic or include more tips inline in the Tips section.
*⬇️
https://github.com/voorhoede/npm-style-guide#use-save-exact-option
While this is a good idea as is, this makes it possible for different developers having different versions of the same package and making it harder to debug if there is inconsistency. Defining the save-exact option prevents this.
Incorrect... Pinning your dependencies only works on the top-level. Imagine you pin top-level dependency a
which depends on b
. If b
does a buggy patch release you'll still get it, as a
has not pinned its dependencies. The only way this can work is if the whole dependency tree have their dependencies pinned, which is totally unfeasible. The correct solution is to use ^
and use shrinkwrap or committing dependencies for safety.
from awesome-npm.
Fair enough. I understand the feedback. Shrinkwrap comes with its own issues, so that's why we're taking this approach. You are right it doesn't solve everything.
from awesome-npm.
Related Issues (12)
- add npm-scripts? HOT 1
- add nodei.co? HOT 1
- how-to-npm isout-of-date :( HOT 2
- How about a section for alternative npm clients? HOT 3
- Add [npm-check-updates] to npm packages HOT 3
- Add better npm completion HOT 3
- Mention lifecycle scripts HOT 1
- [url dead] Writing small modules
- Trick for avoiding relative requires? HOT 8
- npmsearch.com
- concurrently
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-npm.