Skip to content

Commit

Permalink
chore: don't error when symlink already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed Sep 2, 2023
1 parent 313ea25 commit 4887e6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system-tests/lib/dep-installer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ export async function scaffoldProjectNodeModules ({
} catch (err) {
if (err.code === 'MODULE_NOT_FOUND') return

// if the symlink already exists, return as we do not need to relink the directory
if (err.code === 'EEXIST') return

console.error(`⚠ An error occurred while installing the node_modules for ${project}.`)
console.error(err)
throw err
Expand Down

0 comments on commit 4887e6a

Please sign in to comment.