loom-truffle-provider icon indicating copy to clipboard operation
loom-truffle-provider copied to clipboard

Error on install

Open danielspk opened this issue 3 years ago • 2 comments

Hi, I get the following error when executing:

npm install loom-truffle-provider

The error:

npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /home/user/.nvm/versions/node/v14.17.5/bin/node /home/user/.nvm/versions/node/v14.17.5/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/user/.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 1
npm ERR! npm ERR! The git reference could not be found
npm ERR! npm ERR! command git --no-replace-objects checkout 4.0
npm ERR! npm ERR! error: pathspec '4.0' did not match any file(s) known to git

My node version is 14.17.5 and npm is 7.20.6.

It is a clean project with no other dependencies with Truffle installed globally. The only local dependency is "@truffle/hdwallet-provider": "^2.0.0"

danielspk avatar Dec 15 '21 14:12 danielspk

i meet it too! do you have resolved it?

https://github.com/loomnetwork/loom-truffle-provider/issues/17#issuecomment-894071189

i also resove it with npm i [email protected]

liuxiaoy avatar Feb 09 '22 01:02 liuxiaoy

I got the same error too.

This fixed it for me too:

npm i [email protected]

photonite avatar Oct 18 '22 14:10 photonite