Can I install multiple versions of the same npm package name in a subdirectory?

Asked 1 years ago, Updated 1 years ago, 71 views

Specifically, regarding AngularJS installation, running [email protected] and [email protected] in each subdirectory will enter the ./node_modules of all routes.

.
├-- node_modules<- get in here
├-- package.json
└-- test
    ├── 1-3-15
    │   ----node_modules<- I want to put it in here
    └── 1-4-0
        └-- node_modules<- I want to put it in here

./package.json does not need to be added to dependencies, devDependencies.You do not need to use npm if the file configuration to be installed is the same as when npm.Is there any way?

OS X 10.9.5, iojs v1.6.2, npm 2.7.5

javascript node.js

2022-09-30 19:31

1 Answers

I solved myself.

in the directory you want to install
mkdir node_modules & cd$_&npmi [email protected]

It was possible just by doing .


2022-09-30 19:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.