You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In v1.0.4 (both -rc0 and -beta.0), the optional dependencies are not installed, but the package.json is almost the same (except the versions of the dependencies):
Diging into the registry.json file in the Deno's cache, I found that the 1.0.3 is resolved differently as 1.0.4-beta.0. In 1.0.3, the optionalDependencies are added also to the dependencies key:
It looks like, for some reason, Deno is not considering these optional dependencies to be os/platform specific dependencies in 1.0.4.
I also found that if the binaries for 1.0.3 are already cached, Deno will use these files instead of the version specified in the package.json (1.0.4-beta.0).
* fix: handle optional deps not found in dependencies map
(denoland/deno_npm#38)
* fix: resolve a version requirement to the latest dist tag if it
matches (denoland/deno_npm#37)
Closes#20771
Could someone explain the fix? Would deno install the correct platform and architecture specific optional dependencies during deno install and deno run? Is it possible to expose command line arguments such as --only or --with to further customize the behaviour?
@prabhu Deno was previously relying on the fact that the optionalDependencies and dependencies almost always matched in npm's api. It already had optional dependency support.
Is it possible to expose command line arguments such as --only or --with to further customize the behaviour?
In a few months you'll be able to use npm install/pnpm install/etc. with Deno and this should cover that use case.
* fix: handle optional deps not found in dependencies map
(denoland/deno_npm#38)
* fix: resolve a version requirement to the latest dist tag if it
matches (denoland/deno_npm#37)
Closes#20771
I'm getting a very rare error installing
npm:pagefind@1.0.4-beta.0
In v1.0.3 everything works fine. The package has some optionalDependencies with the binary file per os/platform. The package.json is:
In v1.0.4 (both -rc0 and -beta.0), the optional dependencies are not installed, but the package.json is almost the same (except the versions of the dependencies):
Diging into the
registry.json
file in the Deno's cache, I found that the 1.0.3 is resolved differently as 1.0.4-beta.0. In 1.0.3, theoptionalDependencies
are added also to thedependencies
key:But the entry for 1.0.4-beta.0, the
dependencies
key is empty:It looks like, for some reason, Deno is not considering these optional dependencies to be os/platform specific dependencies in 1.0.4.
I also found that if the binaries for 1.0.3 are already cached, Deno will use these files instead of the version specified in the package.json (1.0.4-beta.0).
cc @bglw
The text was updated successfully, but these errors were encountered: