Github actions, 401 unauthorized when installing a Github Package with npm or yarn
问题 When I try to install my npm modules from a GitHub action I get the following error: npm ERR! 401 Unauthorized - GET https://npm.pkg.github.com/@xxxx%2fxxxx-analytics - Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured. Before you comment, I have configured the .npmrc correctly with the scope and access token, and everything works fine when installing the private package locally. Here is