Skip to content
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

Closed
viniciusbo opened this issue Apr 8, 2016 · 6 comments
Closed

pug: command not found #2295

viniciusbo opened this issue Apr 8, 2016 · 6 comments

Comments

@viniciusbo
Copy link

Hi,

After running npm install -g pug as root, pug command is not available. I did close and reopen my terminal session but pug 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. Actually ls /usr/lib64/node_modules/pug/bin returns only jade.js. I've uploaded npm verbose output to http://pastebin.com/rThKwQ5z if might help.

@ForbesLindesay
Copy link
Member

You need to install pug-cli. The CLI was separated from the core library as part of this release.

@viniciusbo
Copy link
Author

README needs clarification about this.

audreytoskin added a commit to audreytoskin/pug that referenced this issue Apr 15, 2016
...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.
ForbesLindesay pushed a commit that referenced this issue Apr 15, 2016
...So you can't use Pug directly from your commandline shell without installing
`pug-cli`.

This update is in response to GitHub issue #2295.
@henryboldi
Copy link

For those searching to a solution for this but have already installed pug-cli, try specifying the version on installation. For example, npm install pug-cli@1.0.0-alpha1 -g

For some reason by default npm was installing version 0.0.0 🤔

@sadokx
Copy link

sadokx commented Jun 11, 2016

Like henryboldi said, npm install pug-cli installs 0.0.0.0

@wshuston
Copy link

wshuston commented Feb 2, 2017

Leaving a comment to point out that this is still an issue and henryboldi's answer worked for me.

@pugjs pugjs locked and limited conversation to collaborators Feb 2, 2017
@ForbesLindesay
Copy link
Member

If there are still problems with this, please file an issue at https://github.com/pugjs/pug-cli

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants