'Failed to deploy artifacts: could not find artifact npm

I am a new aspirant of Devops. Most of the blogs addressed related to "404 error Not found" are of maven projects. Can anyone explain how to resolve it for a react project? I am trying to deploy a react project onto nexus through ci pipeline[Jenkins].

For deployment, while configuring

//Following some blogs I tried these 2 ways:

  1. Configuring .npmrc file
  2. Altering package.json file

But neither have worked and still halted with the error. Now, I need:

  1. What can be the cause of this error?
  2. Are there any other ways to resolve the error? In perspective of npm format projects

Please help me

Thanks in advance



Sources

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

Source: Stack Overflow

Solution Source