V
V
Vasya Bulka2021-07-19 22:40:40
Node.js
Vasya Bulka, 2021-07-19 22:40:40

What are these - environment variables, I want portable?

I installed OpenServer on a portable sdd, and I also put all the necessary tools nearby.
For example, the installation of NODE.js is in the path F:\OpenServe\modules\nodejs.
In the OpenServer settings (F:\OpenServe\userdata\config) I write my path`s.

  1. Am I understanding correctly, if I remove pach C:\Users\Git\AppData\Roaming\npm from environment variables (img), then system CMD won't see NPM?
  2. What is this path for, what is C:\Users\Git\AppData\Roaming\npm stored there?


I want to use node, only in OServer, portable.

60f5d58e93047945273196.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gennady S, 2021-07-19
@Anonymous24

That's right, if you remove the paths from the system environment variables, then not a single application of the system will know about these paths, including the command processor.
The path %USERPROFILE%\AppData\Roaming\npm contains the executables of installed npm packages that provide some packages. To change this path, you need to use npmrc on the Node.js installation path. More details - https://docs.npmjs.com/cli/v7/configuring-npm/folders
Portable installation implies no connection with the system environment, and the right solution is to use the environment and the OSPanel shell, of course.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question