Let's perform the following steps:
- Go to Artifacts and click on Connect to feed; then, click on the npm link and copy the text (as indicated by D in the following screenshot):

- Create a .npmrc file in your HOME directory (C:\Users\<username> \.npmrc in Windows or $home/.npmrc in Linux or Mac systems) and paste in the content. Since Artifacts requires authentication, you also want to click on Generate npm credential and then add the contents to the npmrc file. This generates a 90-day token.
If you have included the credentials, then it is not advised to commit the file into the source control.
- Create a simple client node ...