diff options
author | 2022-10-08 17:16:16 +0800 | |
---|---|---|
committer | 2022-10-08 02:16:16 -0700 | |
commit | 6068ad15d4d7a4c3f2a81e554c18a0c13a3174e5 (patch) | |
tree | 9ec7c31fc360997f6920b47deb6a621ee9971f4f | |
parent | c2c9173eff9e929004d73e087b62ffdc25f0f4ee (diff) | |
download | bun-6068ad15d4d7a4c3f2a81e554c18a0c13a3174e5.tar.gz bun-6068ad15d4d7a4c3f2a81e554c18a0c13a3174e5.tar.zst bun-6068ad15d4d7a4c3f2a81e554c18a0c13a3174e5.zip |
fix: install error when node_modules already in npm package (#1301)
-rw-r--r-- | src/install/install.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/install/install.zig b/src/install/install.zig index 38d800c41..60d8e2fdf 100644 --- a/src/install/install.zig +++ b/src/install/install.zig @@ -930,6 +930,8 @@ const PackageInstall = struct { else => |errno| switch (std.os.errno(errno)) { .OPNOTSUPP => return error.NotSupported, .NOENT => return error.FileNotFound, + // sometimes the downlowded npm package has already node_modules with it, so just ignore exist error here + .EXIST => {}, else => return error.Unexpected, }, } |