<p dir="auto">I decided to try and run a node project of mine with the following arguments:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno run --node-modules-dir --allow-env --allow-sys ./src/main.ts --ext ts"><pre class="notranslate"><code class="notranslate">$ deno run --node-modules-dir --allow-env --allow-sys ./src/main.ts --ext ts
</code></pre></div>
<p dir="auto">It gave back the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Parsing version constraints in the application-level package.json is more strict at the moment.

Not implemented scheme 'file'
    at file:///{path/to/project}/src/main.ts:42:31"><pre class="notranslate"><code class="notranslate">error: Parsing version constraints in the application-level package.json is more strict at the moment.

Not implemented scheme 'file'
    at file:///{path/to/project}/src/main.ts:42:31
</code></pre></div>
<p dir="auto">The library it was trying to import at <code class="notranslate">:42:31</code> was one with the following definition in the <code class="notranslate">package.json</code>:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  &quot;dependencies&quot;: {
    &quot;@my/library&quot;: &quot;file:ext/my-library&quot;
  }
}"><pre class="notranslate">{
  <span class="pl-ent">"dependencies"</span>: {
    <span class="pl-ent">"@my/library"</span>: <span class="pl-s"><span class="pl-pds">"</span>file:ext/my-library<span class="pl-pds">"</span></span>
  }
}</pre></div>
<p dir="auto">This is a relatively straightforward bug, and is pretty low-priority, but thought I'd write it up as I couldn't find a duplicate.</p>
<p dir="auto">Thanks for working on Deno!</p>
<p dir="auto">I have a node module <code class="notranslate">test_node</code> which is locally installed within the deno project into a <code class="notranslate">node_modules</code> folder via:</p>
<p dir="auto"><code class="notranslate">npm install --save ../test_node</code></p>
<p dir="auto">package.json:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  &quot;dependencies&quot;: {
    &quot;test_node&quot;: &quot;file:../test_node&quot;
  }
}"><pre class="notranslate">{
  <span class="pl-ent">"dependencies"</span>: {
    <span class="pl-ent">"test_node"</span>: <span class="pl-s"><span class="pl-pds">"</span>file:../test_node<span class="pl-pds">"</span></span>
  }
}</pre></div>
<p dir="auto">When I run with the <a href="https://deno.land/manual@v1.28.0/node/npm_specifiers#--node-modules-dir-flag" rel="nofollow">node-modules-dir</a> flag:<br>
<code class="notranslate">deno run -A --node-modules-dir index.js</code></p>
<p dir="auto">I get the following error:<br>
<code class="notranslate">error: npm package 'test_node' does not exist</code></p>