Migrating yocto project from sumo to warrior - getting null registry error from npm

Christopher McClellan

I'm migrating a yocto project that is working on sumo to warrior, so I set my layers to be the "warrior" branches. Everything runs fine until it fails in my node project layer on "do_compile" with the error message "Cannot read property 'replace' of null." It seems to return null for npm.config.get('registry'), but it is set on the Docker image that's building this image. If I delete the npm-shrinkwrap.json, it builds, but I'd like to leave that file in for the project. I think I need to either upgrade the npm version to 6.10.3 (where this error was fixed) or set the npm registry for the build process. How would I do that?

Join yocto@lists.yoctoproject.org to automatically receive all group messages.