I want to have a separate directory such as /lib/node_modules from where my create-react-app should refer to. Not instead of parent react directory...
Asked
Active
Viewed 921 times
0
-
Welcome to Stack Overflow Nishant Consider [Taking a tour](https://stackoverflow.com/tour) and also see [How do I ask a good question?](https://stackoverflow.com/help/how-to-ask). Also see [Access node_modules from another folder](https://stackoverflow.com/questions/36491709/access-node-modules-from-another-folder) – Shivam Jha Apr 01 '21 at 18:17
-
This may help: https://stackoverflow.com/questions/26293049/specify-path-to-node-modules-in-package-json – Amir Saleem Apr 01 '21 at 19:05
-
Does this answer your question? [Specify path to node\_modules in package.json](https://stackoverflow.com/questions/26293049/specify-path-to-node-modules-in-package-json) – Amir Saleem Apr 01 '21 at 19:06
1 Answers
0
You can do this by using windows symbolic links. refer to this website - creating symbolic links. I used (J) as it stands for directory junction. Code to run on windows terminal :-
mklink /J "path\name of the creating folder" "path\name of the original folder"
for more info - watch

Sasiru Vishmika
- 16
- 1