Reputation: 2168
Referring to the above picture, can someone please tell my why my NPM script would continually fail saying that node
is not recognized.
nodejs
is clearly in my $PATH and it correctly identifies where it is on my computer outside of an npm
script.
I am using Git Bash inside ConEMU on Windows Version 10.0.17134 Build 17134.
I wouldn't be surprised if the issue is with Windows, as the problem seems to have popped up since the latest OS update, installed just over a week ago (I've been having this issue for around that same amount of time)
Upvotes: 0
Views: 106
Reputation: 2168
I have finally got it working! It is, unsurprisingly, a Windows issue.. Because I had a few entries in my $PATH, and the nodejs one was at the end, Windows would silently fail when reading the entire path, and not get as far as the nodejs entry. The fix was to move the nodejs in the Environment Variables control panel to the very top
Upvotes: 1