summaryrefslogtreecommitdiff
path: root/cli/npm
diff options
context:
space:
mode:
Diffstat (limited to 'cli/npm')
-rw-r--r--cli/npm/registry.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/cli/npm/registry.rs b/cli/npm/registry.rs
index eb0a2068a..585cbe163 100644
--- a/cli/npm/registry.rs
+++ b/cli/npm/registry.rs
@@ -311,7 +311,6 @@ impl CliNpmRegistryApiInner {
) -> Result<(), AnyError> {
let file_cache_path = self.get_package_file_cache_path(name);
let file_text = serde_json::to_string(&package_info)?;
- std::fs::create_dir_all(file_cache_path.parent().unwrap())?;
atomic_write_file(&file_cache_path, file_text, CACHE_PERM)?;
Ok(())
}