-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use nested local path modules #2571
Comments
I'm having the same problem with the following package structure and environment. Package StructuremoduleA
moduleB
moduleC
Environment (Same error on both)OS: node:14-slim Docker image (Based on debian 9.13) OS: CentOS 7 ErrorCaused by running
Removing |
I have same issue on the same structure.
It having an error when i try to For now, what ive done to make sure package-lock.json still can be commit in repo. I search inside package-lock.json for @myexample/package1, then make sure the version is using local path instead of version number "@myexample/package1": {
"version": "file:../package1",
"dev": true
},
"@myexample/package2": {
"version": "file:../package2",
"dev": true,
"dependencies": {
"@myexample/package1": {
"version": "1.0.0" // change this to "version": "file:../package1"
}
}
}, |
I tried the workaround suggested by @arieffikhrie but it looks like all my versions were already pointed to "file:../package1" instead of "1.0.0" and it still breaks when doing a fresh install with no |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo |
npm install
fails when using nested local path moduleshere an example
git@github.com:marcellomontemagno/npm-test.git
here a description of the dependencies between modules
Current Behavior:
Firs install of
moduleC
completes succesfully, removingnode_modules
and installingmoduleC
again fails.Removing the
package-lock.json
works around the issue.Expected Behavior:
npm install
to complete successfullySteps To Reproduce:
workaround
notice that after the workaround
will fail again
Environment:
The text was updated successfully, but these errors were encountered: