My nodejs project uses some libraries. One library pouchdb
will try to install quite a lot of dependencies. There is one called leveldown
, which will try to download Node.js header from Internet and then rebuild everything from scratch. Actually I don't need the leveldown
at all. But their community suggest me to privately fork a pouchdb
and the modify the package.json to exclude any dependency I don't need.
Here is my general question to npm/yarn folks. Is it possible to prevent particular library from being downloaded, while running npm install
or yarn install
?
leveldown
butnode-gyp
, it tries to download header files or current nodejs and then rebuild everything from scratch. But behind a corporate proxy, there will be some difficulties to download stuff from internet, especially when I easily upgrade nodejs (which means need to download corresponding header again) – Danged