V
V
Vlad2021-11-21 19:23:35
npm
Vlad, 2021-11-21 19:23:35

How to make projects install not on the system drive, but on an additional drive (npm i)?

I reinstalled the system (Windows 10) and decided to partition the disk.
Transferred projects without node_modules folders to an additional drive D: \ - as a result, a lot of errors, packages are not installed.
The package manager itself is located on the C:\Users\Vlad\AppData\Roaming\npm drive.
Is the subject possible?

Still .. in the console, a message first flies out that the project was created using a different version of npm.
On the updated system is 8.1.0. Maybe this is the issue?
Help to understand plz.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-11-21
@Vextor-ltd

No, he doesn't care about disks, he puts everything in the project folder.
If you go through npm-related issues here (any) - it turns out that the problem in half the cases is using the "newest" version of node js, which is supported by a little less than no one.
Your case is the same. Always set the lts version of node and everything will (mostly) work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question