Closed red2678 closed 2 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.
So I cannot use this plugin with the locally installed cmd in my project's node_modules folder?
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?
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.
Hi, I am getting this issue in Webstorm 2016.3.3
I have style lint installed via NPM. Any ideas?
Thanks!!