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 when 'npm install' #12

Open
hengruo opened this issue May 18, 2021 · 3 comments
Open

Error when 'npm install' #12

hengruo opened this issue May 18, 2021 · 3 comments

Comments

@hengruo
Copy link

hengruo commented May 18, 2021

node version: v14.17.0
npm version: 7.13.0

Error message:

npm ERR! code 128
npm ERR! git dep preparation failed
npm ERR! command /Users/xxxx/Programs/node-v14/bin/node /Users/xxxx/Programs/node-v14/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/Users/xxxx/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 128
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command git --no-replace-objects clone --mirror -q ssh://git@github.com/gulpjs/gulp.git /Users/xxxx/.npm/_cacache/tmp/git-clone-abb37d14/.git
npm ERR! npm ERR! fatal: destination path '/Users/xxxx/.npm/_cacache/tmp/git-clone-abb37d14/.git' already exists and is not an empty directory.
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /Users/xxxx/.npm/_logs/2021-05-18T00_32_12_504Z-debug.log

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxxx/.npm/_logs/2021-05-18T00_32_18_974Z-debug.log

@pperotti
Copy link

Same issue here:

$ npm install
npm WARN deprecated mkdirp-promise@5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
npm WARN deprecated babel-preset-es2015@6.24.1: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated tar.gz@1.0.7: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated html-webpack-plugin@3.2.0: 3.x is no longer supported
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated truffle-hdwallet-provider@1.0.2: WARNING: This package has been renamed to @truffle/hdwallet-provider.
npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 128
npm ERR! git dep preparation failed
npm ERR! command /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/Users/xxxxx/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 128
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command git ls-remote ssh://git@github.com/gulpjs/gulp.git
npm ERR! npm ERR! git@github.com: Permission denied (publickey).
npm ERR! npm ERR! fatal: Could not read from remote repository.
npm ERR! npm ERR!
npm ERR! npm ERR! Please make sure you have the correct access rights
npm ERR! npm ERR! and the repository exists.

@deniscavalli
Copy link

I was facing the same error. To solve it I updated the web3 version to 1.5.1 ( "web3": "1.5.1" in the package.json)
Also, don't forget to replace truffle-hdwallet-provider with "@truffle/hdwallet-provider": "^1.4.3".
Hope that helps.

@fses91
Copy link

fses91 commented Dec 21, 2021

I was facing the same error. To solve it I updated the web3 version to 1.5.1 ( "web3": "1.5.1" in the package.json) Also, don't forget to replace truffle-hdwallet-provider with "@truffle/hdwallet-provider": "^1.4.3". Hope that helps.

Thanks for your help, I also had to change

var HDWalletProvider = require("@truffle-hdwallet-provider");

to

var HDWalletProvider = require("@truffle/hdwallet-provider");

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

4 participants