I was getting the following error every time I tried to run the npm command.
Solution:
Download the latest tar.xz NodeJS file from https://nodejs.org/en/download/
Where #.#.#
is the version you downloaded.
Verify installation using
My site is free of ads and trackers. Was this post helpful to you? Why not