<p dir="auto">Example package.json file:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  &quot;paths&quot;: {
      &quot;lib_a&quot;: &quot;./path/to/lib/a&quot;
   },
   &quot;scripts&quot;: {
      &quot;lib_a:build&quot;: &quot;tsc -p $npm_package_paths_lib_a&quot;,
      &quot;lib_a:publish&quot;: &quot;npm publish $npm_package_paths_lib_a&quot;
   },
   &quot;devDependencies&quot;: {
      &quot;@my-org/lib-a&quot;: &quot;file:$npm_package_paths_lib_a&quot;,
   }
}"><pre class="notranslate"><code class="notranslate">{
  "paths": {
      "lib_a": "./path/to/lib/a"
   },
   "scripts": {
      "lib_a:build": "tsc -p $npm_package_paths_lib_a",
      "lib_a:publish": "npm publish $npm_package_paths_lib_a"
   },
   "devDependencies": {
      "@my-org/lib-a": "file:$npm_package_paths_lib_a",
   }
}
</code></pre></div>
<p dir="auto">As you can see, we have definied variable <code class="notranslate">$npm_package_paths_lib_a</code> because path to the lib is used in 3 places, but for some reason i can not use variable inside version of dependency. Is there any other syntax for this or this feature is not supported?</p>
<p dir="auto">Big picture:<br>
I have multiple packages inside single repository because i do not want to duplicate build and deploy process, which is same for multiple UI components. Also those components are using different dependencies, so when i use lib_a i do not want to install libraries required for lib_b etc (to make <code class="notranslate">npm install</code> much faster when someone is using only few components).</p>
<h1 dir="auto">What / Why</h1>
<p dir="auto">error:</p>
<p dir="auto">`npm WARN deprecated core-js@2.6.11: core-js@&lt;3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.<br>
npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor.<br>
npm ERR! cb() never called!</p>
<p dir="auto">npm ERR! This is an error with npm itself. Please report this error at:<br>
npm ERR!     <a href="https://npm.community" rel="nofollow">https://npm.community</a></p>
<p dir="auto">npm ERR! A complete log of this run can be found in:<br>
npm ERR!     /Users/userName/.npm/_logs/2020-02-04T14_47_01_098Z-debug.log`</p>
<h2 dir="auto">When</h2>
<p dir="auto">When I run <code class="notranslate">npm install</code>. I get following<br>
Happened first time today</p>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">See error mentioned before</p>
<h3 dir="auto">Steps to Reproduce</h3>
<p dir="auto">run <code class="notranslate">npm install</code></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Should install what is defined in <code class="notranslate">package.json</code></p>