S
S
Sergey2019-12-08 11:58:44
Node.js
Sergey, 2019-12-08 11:58:44

Can npm on the server be used on a per-project basis?

Started learning NODEJS and wondered. On Win in PHPStorm, for example, node_modules is created in each project and stored only there. Having installed NODEJS and npm on the Ubuntu server, I understand that now everything that is installed through npm will be in the same system folder, where was npm installed? Or are there options, like in a storm, to assign modules clearly to one project, for example, in /usr/share/nginx and not make a mess of modules if there are several applications on the same server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2019-12-08
@goodwin74

Don't install globally and as root and you'll be fine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question