fix(npm): resolve bundled npm deps in packages properly when not using a `node_modules` directory (#32679)
We now attempt to find bundled dependencies at the start instead of on
error. Previously we were doing it only on error... and sometimes it
wouldn't error leading to bad resolution.