Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

npm doesn't install local package dependencies #13734

@serhiisol

Description

@serhiisol

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • Other (see below for feature requests):

What's going wrong?

I have monorepo project. In this repo I have two folders: one with actual application and another one with component. Application depends on the component. After npm install I saw that not all dependencies were installed. In particular dependencies for the component. My Component has postinstall hook which runs tsc (typescript to be compiled) and it fails, because some packages weren't installed

How can the CLI team reproduce the problem?

  1. Create package folder
  2. npm init in it
  3. add some dependencies in it, also devDependencies just to check
  4. Create another package
  5. add first folder as a dependency
  6. run npm install

supporting information:

Extra note:

if I'll add npm install && tsc to postinstall it will toggle, somehow, packages installation in application - it means that all component dependencies will also appear in application node_modules

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions