Install npm package without dependencies
问题 I am looking for best solution how to install npm package without it's dependencies described in it's package.json file. The goal is to change dependencies versions before install package. I can do it manually for one package by downloading source, but if you have many nested dependencies it becomes a problem. 回答1: Here's a shell script that seems to get you the extracted files you need. #!/bin/bash package="$1" version=$(npm show ${package} version) archive="${package}-${version}.tgz" curl -