Skip to content
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

Error installing from npm - "git dep preparation failed" #1296

Closed
3 tasks done
cwilby opened this issue May 2, 2023 · 6 comments
Closed
3 tasks done

Error installing from npm - "git dep preparation failed" #1296

cwilby opened this issue May 2, 2023 · 6 comments

Comments

@cwilby
Copy link

cwilby commented May 2, 2023

  • I have searched for similar issues
  • I am using the latest version of npm-check-updates
  • I am using node >= 14.14 (Tested with 16, 18, 19 and 20 via nvm)

Steps to Reproduce

.ncurc: n/a
Dependencies: n/a
Steps:

  • Install node via nvm
  • Run npm install -g npm-check-updates
➜  ~ npm install -g npm-check-updates
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm ERR! code 127
npm ERR! git dep preparation failed
npm ERR! command /home/cwilby/.nvm/versions/node/v16.20.0/bin/node /home/cwilby/.nvm/versions/node/v16.20.0/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/cwilby/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 127
npm ERR! npm ERR! path /home/cwilby/.npm/_cacache/tmp/git-cloneNvgbTd
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c -- npm run compile
npm ERR! npm ERR! > cliui@8.0.1 precompile
npm ERR! npm ERR! > rimraf build
npm ERR! npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! sh: 1: rimraf: not found
@plumduffer
Copy link

plumduffer commented May 2, 2023

Also having this issue. Node 18.16.0

UPDATE: using Node 18.16.0 and downgrading npm-check-updates to 16.3.0, it now works.

@dearhxtan
Copy link

dearhxtan commented May 2, 2023

I got the same error on node version 18.16.0 and 16.20.0, but when i change it to 17.9.1, it runs successful.

please try node version 17.9.1

@6XGate
Copy link

6XGate commented May 2, 2023

It seems there is a circular dependencies between cliui -> rimraf -> glob -> jackspeak -> cliui

I started having this issue with npm-check-updates

@6XGate
Copy link

6XGate commented May 2, 2023

This might be related: isaacs/jackspeak#4 ?

@isaacs
Copy link

isaacs commented May 2, 2023

Fixed, issue explained here: isaacs/jackspeak#4 (comment)

@cwilby
Copy link
Author

cwilby commented May 2, 2023

Amazed. Thanks all.

@cwilby cwilby closed this as completed May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants