Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

429
Vistas
vscode to pick up node js not from enviroment path but from a usb folder

I installed nodejs in a usb folder H:\nodejs\node-v16.14.2-win-x86\node

and when I do

H:\nodejs\node-v16.14.2-win-x86\node testing.js

it works. But how can set vscode in a way that it points to my usb folder?

I got it work with python with

"python.defaultInterpreterPath": "H:\python\python.exe",

I dont wanna use enviroment variable and want to point it directly to a specific folder in my usb that has nodejs installed.

Thanks in advance

over 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

VS Code looks for "Node" on your path, and why would it do it any other way, its platform specific. If VS Code is running in Linux, Mac, or Windows, it won't run.

Not All is Lost for You Though...

Just because VS Code uses your systems path to exec VS Code, which BTW is an official standard for calling executable, doesn't mean you cannot configure the path, using a symbolic link or something like that, to call your executable from your USB.

2BH, the easiest way to get your USB to 'plug n execute' would be to write a piece of software that configures your OS path to execute node from the USB (this is sort of similar to what drivers are for, when you install other hardware, which is sort of what your USB is right?).

You would probably need to write it in MVSC C++, since your on windows. Linux is a far better OS to do stuff like what your doing. You could easily configure your ~/.bashrc to find the executable.

Those are your options though. Its important that you acknowledge how important standards are, if for no other reason than the sake of manifesting your ideas into something useful. If it were not for contemporary standards, which took a hell of a lot of work, and years to put into place (not to mention legal humps to climb over), computers, and programming languages, wouldn't be nearly as useful, or as technologically advanced as the state that you find them in today.

The path on your system is an extremely fundamental standard and concept. It isn't the only option you have for calling executables, which is what you are using to run node from your USB, but it is by far the most used, and for good reason. I want to explain why but its really far beyond the scope of this question. Its cool what your trying to do, so I wanted to help you if I could.

Try to read about using symbolic links with the path. If your clever enough, you could probably get much closer to what you want using symbolic links combined with the system path.

over 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Asistente virtual