diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-09-01 12:37:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 12:37:14 -0400 |
commit | 3a601e56f4401fefb235b01e1405f697397b9790 (patch) | |
tree | 512a657a0d6be1eec43c004c184cf1875cbc5aa7 /cli/npm/mod.rs | |
parent | 67713f4b9354799c4013dda9558470ce18989627 (diff) |
fix(npm): ignore npm cache directory creation errors (#15728)
Diffstat (limited to 'cli/npm/mod.rs')
-rw-r--r-- | cli/npm/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/npm/mod.rs b/cli/npm/mod.rs index 7bb515e9e..5b49afb3d 100644 --- a/cli/npm/mod.rs +++ b/cli/npm/mod.rs @@ -85,13 +85,13 @@ impl GlobalNpmPackageResolver { reload: bool, cache_setting: CacheSetting, unstable: bool, - ) -> Result<Self, AnyError> { - Ok(Self::from_cache( - NpmCache::from_deno_dir(dir, cache_setting.clone())?, + ) -> Self { + Self::from_cache( + NpmCache::from_deno_dir(dir, cache_setting.clone()), reload, cache_setting, unstable, - )) + ) } fn from_cache( |