I’m trying to run some nodejs apps in Notepad++. I installed NppExec and node works just fine in the console, but npm packages don’t run even though I installed them with the -g flag. My current workaround is to call cmd from the console and then running the app like:
// `cmd` inside Notepad++ console
C:\>lessc "$(FULL_CURRENT_PATH)" > "$(CURRENT_DIRECTORY)\$(NAME_PART).css"
How can I run it straight from the Notepad++ console without having to go into cmd?
Frankly this looks like a bug in NppExec, where it cannot run .cmd files from PATH.
A workaround would be to run:
You’ll get the path to the command like:
C:\Users\username\AppData\Roaming\npm\lessc.cmdUse that path inside NppExec console.
However I’d stick to the solution you already found, looks far more better to me.