set multiple PATH variables in CMD

Viewed 3399

I'm working in a non-admin environment and I need to get a vue project running. To do this, I need to set both the path to node and to npm. Here are the two paths:

E:\nodejs

E:\npm

If I set these one by one, like so:

set PATH="E:\nodejs"
set PATH="E:\npm"

The first configuration is overwritten by the second, so I'm either lacking the scope for the npm or the nodejs directory.

I googled it and I found multiple solutions like here: https://superuser.com/questions/23048/setting-multiple-environment-variables-in-a-shell-spawned-via-windows-batch-scri

But I dont really know if they do what I actually need.

To do what I described above inside a CMD, what command do I need?

1 Answers
Related