'I found 404 Not Found when I installed npm package from local directory even packege exist in nodemodules

I installed a npm package from a local directory. The package installed and is present in the node_modules directory.

But when I access the package it’s showing me error:

404 not found

Can any one suggest to me how I can fix this problem?



Solution 1:[1]

add registry=https://yarn.npmjs.org to file ~/.npmrc.This probably could solve the problem. Also it would be better if you send a screenshot or snippet of the error.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Arun