Search code examples
node.jsnpmartifactory

I'm getting npm ERR! 400 Bad Request - GET https://artifactory.devops."**********"/artifactory/api/npm/npm/npm


I'm trying to install npm within my project folder but I'm getting the error mentioned in the Title, can anyone please help me out here. PS I was told that we're using an artifactory registry instead of a Node registry.


Solution

  • It appears that the Artifactory npm repository is not correctly configured as the npm registry which in turn returns the 'HTTP 400 - Bad Request' error. Have you followed the instructions from the Set Me Up section available for the NPM repositories in Artifactory?

    Check out this video that explains step by step process to Set Up an NPM Repository in Artifactory. Consider verifying the steps you have followed with the steps described in the following JFrog wiki as well.