[FIXED] install npm package from private github repository npm ERR! code ENOENT


i’m trying to install a npm package from private repository github of my organisaion with npm install, but i still have a npm ERR! code ENOENT
How can i configure my npmrc to say that i would install package from a private github repository + npm package public repository ?


As mentioned in previous answers you need to set a personal token within your profile so that when npm runs it will use your token.

Another option is, you can ignore the file .npmrc where you’ll add your token.

registry = https://npm.pkg.github.com/company_package

Answered By – MKlemersson

Answer Checked By – Gilberto Lyons (Easybugfix Admin)

Leave a Reply

(*) Required, Your email will not be published