Skip to content

[BUG] linked install: TypeError: Cannot read properties of undefined (reading 'isProjectRoot') #7067

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

Open
2 tasks done
selfisekai opened this issue Dec 9, 2023 · 0 comments
Labels
Bug thing that needs fixing install-linked-strategy Priority 2 secondary priority issue Release 10.x

Comments

@selfisekai
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

53 warn reify The "linked" install strategy is EXPERIMENTAL and may contain bugs.
54 timing reify:diffTrees Completed in 23ms
55 silly reify moves {}
56 timing reify:retireShallow Completed in 0ms
57 timing reify:createSparse Completed in 159ms
58 timing reify:rollback:createSparse Completed in 282ms
59 timing reify:rollback:retireShallow Completed in 0ms
60 timing command:ci Completed in 1601ms
61 verbose stack TypeError: Cannot read properties of undefined (reading 'isProjectRoot')
61 verbose stack     at [addOmitsToTrashList] (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:490:16)
61 verbose stack     at [reifyPackages] (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:251:29)
61 verbose stack     at async Arborist.reify (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:170:5)
61 verbose stack     at async CI.exec (/usr/lib/node_modules/npm/lib/commands/ci.js:87:5)
61 verbose stack     at async module.exports (/usr/lib/node_modules/npm/lib/cli-entry.js:61:5)
62 verbose cwd /home/lauren/aports/testing/bruno/src/bruno-1.4.0
63 verbose Linux 6.6.4-1-lts
64 verbose node v20.10.0
65 verbose npm  v10.2.5
66 error Cannot read properties of undefined (reading 'isProjectRoot')
67 verbose exit 1
68 timing npm Completed in 1793ms

Expected Behavior

successfully installing dependencies

Steps To Reproduce

  1. clone https://github.com/usebruno/bruno/releases/tag/v1.4.0
  2. npm ci --ignore-scripts --install-strategy=linked --omit=dev

Environment

  • npm: 10.2.5
  • Node.js: v20.10.0
  • OS Name: Alpine Linux edge
  • System Model Name: x86_64 PC
  • npm config:
; "builtin" config from /usr/lib/node_modules/npm/npmrc

globalignorefile = "/etc/npmignore" 
prefix = "/usr/local" 
python = "/usr/bin/python3" 

; node bin location = /usr/bin/node
; node version = v20.10.0
; npm local prefix = /home/lauren/aports/testing/bruno/src/bruno-1.4.0
; npm version = 10.2.5
; cwd = /home/lauren/aports/testing/bruno/src/bruno-1.4.0
; HOME = /home/lauren
; Run `npm config ls -l` to show all defaults.
@selfisekai selfisekai added Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x labels Dec 9, 2023
@kchindam-infy kchindam-infy added Priority 2 secondary priority issue install-linked-strategy and removed Needs Triage needs review for next steps labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing install-linked-strategy Priority 2 secondary priority issue Release 10.x
Projects
None yet
Development

No branches or pull requests

2 participants