Jardinero / stylelint-plugin

Stylelint plugin for all products based on IntelliJ Platform (IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, AppCode, etc.)
MIT License
20 stars 4 forks source link

Could not create stylelint process. #9

Closed red2678 closed 2 years ago

red2678 commented 7 years ago

Hi, I am getting this issue in Webstorm 2016.3.3

Could not create stylelint process.: Cannot run program "\stylelint.cmd" (in directory "D:\xxx\xxx\xxx"): CreateProcess error=2, The system cannot find the file specified

I have style lint installed via NPM. Any ideas?

Thanks!!

niutech commented 7 years ago

First check if you have installed stylelint globally (npm install -g). Find the stylelint.cmd file path, it should be %AppData%\npm\node_modules\stylelint, finally paste it into Settings.

red2678 commented 7 years ago

So I cannot use this plugin with the locally installed cmd in my project's node_modules folder?

tilwinjoy commented 6 years ago

I have the same problem. Can't this plugin have stylelint as a local dependency?

First check if you have installed stylelint globally (npm install -g). Find the stylelint.cmd file path, it should be %AppData%\npm\node_modules\stylelint, finally paste it into Settings.

What settings?

felu commented 6 years ago

Same issue here.

I installed stylelint with 'npm install -g stylelint' in Windows PowerShell. It installed stylelint to 'C:\Program Files\nodejs\node_modules\stylelint' (not to %AppData%). If I set this path in IntelliJ, it gives me the same error as mentioned above.

There is no stylelint.cmd file in that directory. Instead I find it ( 'where.exe stylelint.cmd' ) 'C:\Program Files\nodejs\stylelint.cmd'. If I set this path, I get an error in IntelliJ 'Stylelint: please specify Stylelint package correctly: ".../package.json" file not found' ( package.json of course is installed in C:\Program Files\nodejs\node_modules\stylelint )

I also would prefer to run stylelint against locally dependencies.