There was an error while loading. Please reload this page.
If I run npm publish in cli directly package will publish without any error but when I add it in a script inside package.json file it says :
npm publish
package.json
npm ERR! 401 Unauthorized - PUT https://registry.yarnpkg.com/@someWhere/package - You must be logged in to publish packages.
I tried to delete .npmrc , relogin, generate authToken and add it on npmrc but could not solve it
.npmrc