[BUG] npm install - workspaces not installing dependencies as expected #3609
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Current Behavior
I have the following configuration
When I run 'npm install' on my local environment - it generates a package-lock with 982 dependencies.
In my CI (using Google Cloudbuild)
I run
which runs the 'npm install' command.
But get the following output:
I expect that to be much bigger, based off the dependencies in the 2 workspace package.json files.
NPM doesn't seem to be recognising the workspaces, as when I run 'npm run test --ws' as part of the CI build, the following error occurs:
Again this works again locally, but not in the CI.
Expected Behavior
npm install from the package, should create package lock correctly from the workspace directories
'npm run test --ws' should run test on both packages, as it does locally.
Steps To Reproduce
Below example is an opensource project, that works locally, but does not work on a CI.
Environment
CI configuration:
The text was updated successfully, but these errors were encountered: