Sublime Forum

[WinError 2] The system cannot find the file specified(yet again)

#1

so yeah, after one hour of searching i am finally here, would be glad if i could receive some help
when i create script.js file and save it (Ctrl + s) this is what i get

or in text:
[WinError 2] The system cannot find the file specified
[cmd: [‘node’, ‘C:\Users\User\AppData\Roaming\Sublime Text 3\Packages/JSLint/linter.js’, ‘–bitwise’, ‘–browser’, ‘–es6’, ‘–eval’, ‘–for’, ‘–fudge’, ‘–node’, ‘–this’, ‘C:\Users\User\Desktop\programmin\All coding Files\web-dev foilders\PLEASEWORK\script.js’]]
[dir: C:\Users\User\Desktop\programmin\All coding Files\web-dev foilders\PLEASEWORK]
[path: C:\Program Files\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0]
[Finished]
any ideas on how to solve it?

0 Likes

#2

This list of folder locations is the list of places that Windows looks for executables that you ask it to run. The error message you’re getting indicates that you asked it to execute node, and after looking in all of these locations, it didn’t find it and thus can’t run it.

You will need to update your PATH to point to the location where you installed it, though I’m fairly certain that the installer for NodeJS either sticks it into the system path for you or at least asks you if it should. In that case uninstalling it and then re-installing and saying yes to that option should fix the problem.

0 Likes

#3

if i got it right i just need to install Node JS

0 Likes

#4

so how can i update my PATH to the location where i installed it ?

0 Likes

#5

Assuming the installer didn’t add it to the path, the instructions for adding to the path are similar to the video linked below (which should start at the position of the answer to this question).

It’s about Python, but the process is the same, you’d just use a different location. You want to enter in the folder that contains the node.exe, which is probably something like C:\Program Files\nodejs if you chose the default location during the install.

0 Likes

#6

so yeah… apparently node.js does not support windows 7 anymore thus i can not install it, and plus there is no Path in Environment Variables


thanks for the help but i guess i`mma just download vs code

0 Likes

#7

If you don’t have a PATH you can use New to add one; however if Node doesn’t run on Windows 7 that’s not as much help as it could be unless you ran an older version from before they stopped support or something.

0 Likes