[英]Executing pug from local node_modules
I'm trying to execute pug (/jade) from node_modules but I didn't find the executable inside node_modules/.bin folder. 我正在尝试从node_modules执行pug(/ jade),但是我没有在node_modules / .bin文件夹中找到可执行文件。 I'm using MacOS 10.12.5 and I installed pug through "npm install --save pug" command. 我正在使用MacOS 10.12.5并通过“npm install --save pug”命令安装了pug。 How can I execute pug command from node_modules folder without global installation? 如何在没有全局安装的情况下从node_modules文件夹执行pug命令?
For using pug from a command line you have to install pug-cli
. 要从命令行使用pug,您必须安装pug-cli
。
As a local package: npm install pug-cli --save
作为本地包: npm install pug-cli --save
As a global package: npm install pug-cli -g
作为一个全局包: npm install pug-cli -g
More information: https://github.com/pugjs/pug-cli#installation 更多信息: https : //github.com/pugjs/pug-cli#installation
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.