How can I npm install
a package into a different directory?
相关问题
- Failed at the electron@1.8.2 postinstall script
- Webpack getting started, import error
- No member named ForceSet
- AWS Elastic BeanStalk nodejs Deployment error
- node local dependency installs as shortcut and nes
相关文章
- @angular-cli install fails with deprecated request
- Compile and build with single command line Java (L
- Create React App not installing, showing an error
- new field false in Package.json
- npm : Postinstall not running in docker
- Babel CLI is extremely slow
- Docker and npm - gyp ERR! not ok
- Is there an npm module to modify a pdf file in nod
Say you want to install Case package, you can have a specific version under an alias:
or just give it a different name
If you want to edit package.json directly:
require():
Yarn used to have this functionality for a long time, and npm finally got it since v6.9.0, Mar 2019.
If you want to update your npm: