I am getting this error while running sudo npm install
. On my server, npm was installed earlier. I\'ve tried to delete the package-lock.json
file,
Updating the .npmrc
files' entries for scoped and un-scoped packages worked for me.
So I ended up using the
npm config set @scope_name:registry SCOPED_REGISTRY_URL
and
npm config set registry PUBLIC_REGISTRY_URL
Try this
Step-1) Delete package-lock.json from root folder.
Step-2) Delete node_modules folder
Step-3) run npm install command in root
My problem was 2 things:
What i did is:
Fixed my error!