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
I ran into some issues while installing node packages, after several repeated tries, I discovered that it usually stops while installing rchain-did-resolver.
ERROR:
Its throws an npm ERR! git dep preparation failed, and goes further to explain that the dependency tree is corrupted and a 404 error while trying to fetch rchain-did-resolver.
STEPS:
These are the steps I took to fix the problem;
$ npm cache clean --force
Delete node_modules by $ rm -rf node_modules also delete package-lock.json
Update the npm to the latest stable version
npm install
- $ npm start
The above procedure gotten from here may solve the problem, in my case, it didn't solve the problem.
So I had to configure npm to increase to timeout while attempting to fetch a resource, this can either be done on the terminal or inside npm config file ./npmrc depending on the OS you are using. this and this should help.
I did mine on the terminal using $ npm config set fetch-retry-maxtimeout 240000 -g i.e I increased the timeout from 1 minute to 4 minutes.
Lastly, I added the --force and the --legacy-peer-dep so npm can ignore any errors in the dependency tree graph.
So the final command that ran successfully looked like this $ /home/${USER}/.nvm/versions/node/v15.5.1/bin/node /home/${USER}/.nvm/versions/node/v15.5.1/lib/node_modules/npm/bin/npm-cli.js install --cache=/home/${USER}/.npm/_cacache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --force --legacy-peer-deps.
NOTE - You have to change the ${USER} directory to your own user directory, which should be the username of your computer.
Also, this was done in a Linux environment i.e Windows Subsystem for Linux v2, WSL2
The text was updated successfully, but these errors were encountered:
I ran into some issues while installing node packages, after several repeated tries, I discovered that it usually stops while installing
rchain-did-resolver
.ERROR:
Its throws an
npm ERR! git dep preparation failed
, and goes further to explain that the dependency tree is corrupted and a 404 error while trying to fetchrchain-did-resolver
.STEPS:
These are the steps I took to fix the problem;
$ npm cache clean --force
$ rm -rf node_modules
also delete package-lock.json-
$ npm start
The above procedure gotten from here may solve the problem, in my case, it didn't solve the problem.
So I had to configure npm to increase to timeout while attempting to fetch a resource, this can either be done on the terminal or inside npm config file ./npmrc depending on the OS you are using. this and this should help.
I did mine on the terminal using
$ npm config set fetch-retry-maxtimeout 240000 -g
i.e I increased the timeout from 1 minute to 4 minutes.Lastly, I added the
--force
and the--legacy-peer-dep
so npm can ignore any errors in the dependency tree graph.So the final command that ran successfully looked like this
$ /home/${USER}/.nvm/versions/node/v15.5.1/bin/node /home/${USER}/.nvm/versions/node/v15.5.1/lib/node_modules/npm/bin/npm-cli.js install --cache=/home/${USER}/.npm/_cacache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --force --legacy-peer-deps
.NOTE - You have to change the
${USER}
directory to your own user directory, which should be the username of your computer.Also, this was done in a Linux environment i.e Windows Subsystem for Linux v2, WSL2
The text was updated successfully, but these errors were encountered: