Can npm packages be referenced locally

  node.js, question

For example, private packages are used by several projects. Can they be referenced by local directory installation?

such asnpm install ../packageA
This installation seems to be correct, and node_modules/packageA is indeed installed, but package.json does not have a reference to packageA.
I don’t know if this method is supported or not, how to update and maintain it in the future.

Trynpm install --save ../package