You can link local packages together for local testing. npm link sets up a global reference which other packages can import. Run npm link in the dependency you want to import and then run npm link dependency-name in the application package. For more see the resource below.
This is an alternative to using link. This package helps manage some of the problems that can arise from npm | yarn link.
If you require a specific package-lock.json version (in your build process for example) you can use npm i --lockfile-version X to generate a lock file with the given version. Replace X with the version you need, such as npm i --lockfile-version 2.