1.1.0 • Published 3 years ago
npm-from-past v1.1.0
npm-from-past
Run npm/yarn commands as if you were in the past. Useful if you lost a lock file or need to install a dependency in a legacy project that hasn't been updated in a while.
Install
npm install -g npm-from-pastUsage as registry-server wrapper
Start registry server:
npm-from-past 2019-07-20 --server --port 10001Use it with npm commands:
NPM_CONFIG_REGISTRY=http://localhost:10001 npm installUsage as command wrapper
Run npm install as if you were back in 2016-05-06:
npm-from-past 2016-05-06 npm install reduxCheck latest version which was at the time:
npm-from-past 2016-05-06 npm show redux versionUse any other npm-commands in the same way. If you have any troubles, try to switch to registry-server.