Unable to update FDK Version

Hi,

I’m unable to update fdk version and I’m getting the below error:

npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ENODATA: Cache input stream was empty
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code EINTEGRITY
npm ERR! errno EINTEGRITY
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/mkdirp: Integrity verification failed for sha512-
IkNGu45s0qGX1ODJIpC63ofFDDL3J6L5XiBlLmDeyM8n8ow8SJcJEopfBH9qJWnz8uh5LyLV1EpuHDRYWRKQLQ== (/home/artis4/.npm/_cacache/content-v2/sha512/22/43/46bb8e6cd2a197d4e0c92290bade87c50c32f727a2f95e20652e60dec8cf27f28c3c489709128a5f047f6a2569f3f2e8792f22d5d44a6e1c34585912902d)

npm ERR! A complete log of this run can be found in:
npm ERR! /home/artis4/.npm/_logs/2020-11-03T05_35_21_941Z-debug.log

Below is the command I used to update:
npm install http://dl.freshdev.io/cli/fdk-6.7.2.tgz -g

My OS is Linux-Debian.

Can someone help how can I update fdk version?

Thanks,
Parimala.

Hi @Parimala,

This could be caused by network issues or dependencies issues. As I could not reproduce it, it could not be an issue with dependency, I think.

Could you try the following command to check if the cache folder and integrity of it’s index is fine. It could solve the issue when retried to install the FDK.

npm cache verify

If it did not work, try out the following the command to clear the NPM cache and reinstall the FDK.

npm cache clear --force

Let us know if it works.

Hi Raviraj,

Thanks for your response.

I’ve tried the command you suggested before only:
npm cache clear --force

But It’s giving me errors like:

npm WARN using --force I sure hope you know what you are doing.

┌──────────────────────────────────────────────────────────┐
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) /home/artis4/.config │
└──────────────────────────────────────────────────────────┘

And I’ve tried another command that you have suggested:
npm cache verify

Response is:

Cache verified and compressed (~/.npm/_cacache):
Content verified: 3 (7555176 bytes)
Index entries: 3
Finished in 0.101s

┌──────────────────────────────────────────────────────────┐
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) /home/artis4/.config │
└──────────────────────────────────────────────────────────┘

Thanks,
Parimala.

@Parimala I’m still not sure why is it occurs.

Were you happen to install the FDK only by following the documentation steps?

Could you try uninstalling FDK, Node, NVM, and all it’s related folders and try following the documentation steps?

@Parimala

Looks like certain version of npm is causing this problem in course of verification with npm registry. One way, can you try upgrading or downgrading to a different version of npm? Apparently anything that’s 4.X.X or 6.14.X doesn’t see this issue.

1 Like

I tried uninstalling and installing still failed to get the latest version of FDK. Can anyone assist me with this?