M
M
madwayz13372017-07-04 09:24:06
Node.js
madwayz1337, 2017-07-04 09:24:06

A few questions about installing node.js on ubuntu.?

1. How to install node.js globally?
2. Can npm start be run even from the vps root or only from where, for example, bot.js is located?
3. Where are node modules installed if I installed them via npm install module on behalf of a user with sudo access?
4. Can I install modules where I want? On Windows, for example, you can write cd ./Desktop/server and npm install. Modules will be installed in this folder.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2017-07-04
@madwayz1337

1. https://nodejs.org/en/download/package-manager/#de...
2. From there where package.json is, it is obvious that it will not be in the VPS root
3. To the node_modules subfolder inside the directory from which it was launched command or higher in the directory tree if there is a package.json somewhere at a higher level, but it is not in the current directory
4. You can try using search engines, there are answers to these and many other questions of yours

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question