Home > other >  'make' commands don't work in WebStorm Makfile Language Plugin
'make' commands don't work in WebStorm Makfile Language Plugin

Time:01-24

I've faced an issue which I don't understand how to solve. I use WebStorm on Windows. There I've installed Makefile Language plugin to launch commands automatically

install:
    npm ci
brain-games:
    node bin/brain-games.js
publish:
    npm publish --dry-run
lint:
    npx eslint

but I cannot do that, it returns error

C:\ProgramData\chocolatey\bin\make.exe -f *way-to-the-project*/Makefile publish

process_begin: CreateProcess(NULL, npm publish --dry-run, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [*way-to-the-project*/Makefile:6: publish] Error 2

I've tried to run 'make' commands using Powershell and Ubuntu from Microsoft Store and it has worked well, I just cannot understand what is the problem with the plugin and how to use it properly.

Please help me with any advice :)

CodePudding user response:

If you have the issue like this one when you use WebStorm on Windows and try to run Makefile, make sure that in IDE you don't have checked option Add 'node_modules/.bin' from the project root to %PATH% in File -> Settings -> Tools -> Terminal.

Maybe it will save hours for you :)

  •  Tags:  
  • Related