News for hackers. Stuff that matters.
Re:React created roadblocks in our enterprise app by janaagaard on Friday January 22, 2021 @04:44PM (#25876685)
We have a pretty similar issue at work where our package-lock file switches URLs between npmjs.com and our own npm registry. Can you elaborate a bit on what the issue is and how to solve it?
Re:React created roadblocks in our enterprise app by lhorie on Friday January 22, 2021 @05:17PM (#25877003)
The issue is that some developers have configured the registry field in their .npmrc file incorrectly. Ideally, sending out a memo telling everyone to fix it should do it. If not, one way to fix it is to commit the .npmrc with the correct configuration (assuming it doesn't include secrets). If all else fails, an ugly hack is to make a preinstall hook that fixes the .npmrc file.
Re:React created roadblocks in our enterprise app by twobuy on Friday January 22, 2021 @04:49PM (#25876725)
This is likely referring to the .npmrc registry field.
Re:React created roadblocks in our enterprise app by cratermoon on Friday January 22, 2021 @06:49PM (#25877875)
Yep.