Path to PUG in file Watcher

已回答

Hi

I have a problem. Trying to add file watcher using this manual

https://www.jetbrains.com/help/phpstorm/pug-jade-template-engine.html

But PHPStorm automatically can't find PUG in npm_modules


 i've tried to choose file C:\Users\localadmin\node_modules\pug\lib\index.js

but it didn't work

 

What file should i choose?

 

Thank You 

1

Hi there,

AFAIK it should point to a .bat/.cmd file (since you are on Windows).

Such pug.cmd file should be located in C:\Users\USERNAME\AppData\Roaming\npm\ folder if you have installed that CLI command as recommended (https://github.com/pugjs/pug/tree/master/packages/pug):

npm install pug-cli -g

 

 

0
Avatar
Permanently deleted user

Thank you. Those path worked.

 

(And turns out, i could find this path using command  

where pug  )

 

Thank You :)

0

请先登录再写评论。