Skip to content

[BUG] hapijs/lab repo fails to install #2005

Description

@kanongil

Current Behavior:

npm install fails to install all dependencies, and installing specific dependency fails with npm error.

npm ERR! Cannot read property 'version' of undefined

From log:

71 verbose stack TypeError: Cannot read property 'version' of undefined
71 verbose stack     at Arborist.[saveIdealTree] (/home/node-15/.nvm/versions/node/v15.0.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:800:33)
71 verbose stack     at /home/node-15/.nvm/versions/node/v15.0.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:124:39
71 verbose stack     at async Arborist.reify (/home/node-15/.nvm/versions/node/v15.0.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:121:5)
71 verbose stack     at async install (/home/node-15/.nvm/versions/node/v15.0.0/lib/node_modules/npm/lib/install.js:40:5)

Expected Behavior:

Npm installs all dependencies, and npm install typescript works.

Steps To Reproduce:

git clone https://github.com/hapijs/lab.git && cd lab
npm install
npm install typescript

Environment:

  • Node: 15.0.0
  • npm: 7.0.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions