-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pug: command not found #2295
Comments
You need to install |
README needs clarification about this. |
...So you can't use Pug directly from your commandline shell without installing `pug-cli`. This update is in response to GitHub issue pugjs#2295.
...So you can't use Pug directly from your commandline shell without installing `pug-cli`. This update is in response to GitHub issue #2295.
For those searching to a solution for this but have already installed pug-cli, try specifying the version on installation. For example, For some reason by default npm was installing |
Like henryboldi said, npm install pug-cli installs 0.0.0.0 |
Leaving a comment to point out that this is still an issue and henryboldi's answer worked for me. |
If there are still problems with this, please file an issue at https://github.com/pugjs/pug-cli |
Hi,
After running
npm install -g pug
as root, pug command is not available. I did close and reopen my terminal session butpug
is still not available. Take a look at the npm output:npm install -g pug /usr/bin/jade -> /usr/lib64/node_modules/pug/bin/jade.js pug@0.1.0 /usr/lib64/node_modules/pug ├── pug-runtime@0.0.0 ├── pug-loader@0.0.0 (pug-walk@0.0.0) ├── pug-strip-comments@0.0.1 (pug-error@0.0.0) ├── pug-linker@0.0.0 (pug-error@0.0.0, pug-walk@0.0.0) ├── pug-parser@0.0.0 (pug-error@0.0.0, token-stream@0.0.1) ├── pug-code-gen@0.0.0 (doctypes@1.0.0, js-stringify@1.0.2, void-elements@2.0.1, pug-attrs@0.0.0, constantinople@3.0.2, with@5.0.0) ├── pug-lexer@0.0.0 (pug-error@0.0.0, character-parser@2.2.0, is-expression@1.0.2) └── pug-filters@1.1.0 (pug-error@0.0.0, pug-walk@0.0.0, resolve@1.1.7, constantinople@3.0.2, jstransformer@0.0.3, clean-css@3.4.11, uglify-js@2.6.2)
The
/usr/bin/pug
symlink is not being created at all. Actuallyls /usr/lib64/node_modules/pug/bin
returns onlyjade.js
. I've uploaded npm verbose output to http://pastebin.com/rThKwQ5z if might help.The text was updated successfully, but these errors were encountered: