Change your registry to npm.pkg.github.com

npm ERR! code E401
Are you coming across this error? hopefully, this post will help you.