Skip to content

projects using pug cannot be installed globally #3239

Closed
@richRemer

Description

@richRemer

Pug Version: 2.0.4

Node Version: 10.19

Minimal steps to reproduce:

npm init -y
# change name to something unique; I used [@zingle/npm-error](https://www.npmjs.com/package/@zingle/npm-error) as a minimal example
npm publish --access all
# then switch to the root user and run:
npm install -g @zingle/npm-error      # ... or whatever package you named it

The npm command will exit with the following error:

npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

> [email protected] postinstall /usr/local/lib/node_modules/@zingle/npm-error/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Additional Comments

This makes pug completely useless for a number of reasonable use cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions