pichillilorenzo/JavaScriptEnhancements

Setting Node.js/npm Path on a Windows 10 PC

Closed this issue ยท 4 comments

Despite setting the suggested working paths for node & npm executables, I get the following popup every time I use the package.

Screenshots

image

My PATHs

image

Since, there's no official alternative of nvm for Windows, so not setting the PATH variable still triggers the same popup on startup.

Specifications

  • Sublime Text 3 build: Dev Channel, Build 3157
  • OS: Windows 10 Pro Insider (Version 1709, Build 17074.1002)
  • JavaScript Enhancements version: 0.15.0

have you tried to run where npm? Also, in the PATH environment variable (I mean the PATH variable of windows), is there a reference to the npm executable?? In case, can you post the value of it?

Yes, both node.exe & npm.cmd are in the internal system PATH variable of Windows and I did insert the value of where npm for npm_custom_path & where node for node_js_custom_path. But, since the documentation states to insert the PATH of nvm into PATH variable and there's no nvm for Windows, I also tried leaving your extension's PATH variable empty. Still, it shows the same error.

Never mind, I reinstalled the extension and it seems to be working fine now and no popups for now. Thank you for your time. I'll make sure to raise another issue if I find a bug or if I come across another problem. ๐Ÿ˜Š

Ok! Thanks! ๐Ÿ˜„