A
A
Anton Fedoryan2018-11-13 12:01:49
linux
Anton Fedoryan, 2018-11-13 12:01:49

How to install Pug on Ubuntu?

  • Ubuntu 18.04.1LTS
  • node.js v11.1.0
  • npmv6.4.1

I'm trying to install Pug using the command:
sudo npm install pug
After a couple of minutes, the installation reaches about 60% and freezes (no response for more than an hour).
npm WARN tarball tarball data for [email protected]^1.0.0 (sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=) seems to be corrupted. Trying one more time.

[            ......] - extract:core-js: WARN tarball tarball data for [email protected]^1.0.0 (sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=) seems to be corrupted. Trying one more time.

Although if you install decamelize directly
sudo npm install decamelize
, then the installation goes without problems (but version 2.0.0 is installed).
Is it possible to somehow download the package Pugnot through the terminal?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Fedoryan, 2018-11-13
@AnnTHony

The following commands helped:

  1. Clear the package manager cache
    $ npm cache clean --force
    $ npm install --force --verbose --no-bin-links

  2. Install boring packages of the latest versions
    $ npm install [email protected]
    $ npm install [email protected] -g

Result :
$ pug -V
pug version: 2.0.3
pug-cli version: 1.0.0-alpha6

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question