You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] incorrect resolution of relative paths with install-strategy=linked #7549
And the file /Users/dan/Source/project1/project2/package.json exists.
This installs fine with every install strategy except linked where I receive the below error:
$ npm install --install-strategy linkednpm warn reify The "linked" install strategy is EXPERIMENTAL and may contain bugs.npm warn tarball tarball data for project2@file:../project2 (null) seems to be corrupted. Trying again.npm warn tarball tarball data for project2@file:../project2 (null) seems to be corrupted. Trying again.npm error code ENOENTnpm error syscall opennpm error path /Users/dan/Source/project2/package.jsonnpm error errno -2npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/Users/dan/Source/project2/package.json'npm error enoent This is related to npm not being able to find a file.npm error enoentnpm error A complete log of this run can be found in: /Users/dan/.npm/_logs/2024-05-22T02_17_21_083Z-debug-0.log
Note that:
The error mentions project2@file:../project2, which is not the depended path.
The path that it's looking for package.json is at /Users/dan/Source/project2/package.json, NOT /Users/dan/Source/project1/project2/package.json
Activity
d00rsfan commentedon Mar 25, 2025
1 year gone, bug with erroneous attempt to resolve package on one level above is still persisting :(