question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If symlinks are removed after their target file during a deploy, the deploy fails

See original GitHub issue

For example, I had removed the npm package acorn from a website and attempted to deploy.

The node_modules/acorn/ folder was removed successfully, but the node_module/.bin/acorn symlink, which points to …/acorn/bin/acorn (i.e. node_modules/acorn/bin/acorn) cannot be removed, with the error: Error: ENOENT: no such file or directory, stat '/home/site/wwwroot/stripe-node/node_modules/.bin/acorn' (presumably because the deploy script attempts to follow the symlink rather than checking the link itself).

Workaround was to manually remove the symlink.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
shprakacommented, Nov 11, 2022

I’ve not seen it happening recently but I don’t think I have removed any node modules from any websites recently, so that’s probably not surprising.

@mcdurdin I will close it then. Feel free to re-open it if you come across the issue again.

0reactions
github-actions[bot]commented, Nov 10, 2022

This issue is idle because it has been open for 14 days with no activity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The create operation stopped after reaching a symbolic link
I recently deployed symlinks in a DFS file share deployment (symlink /D). I started receiving "The create operation stopped after reaching a ...
Read more >
Deploy does not follow symlinks #1809 - netlify/cli - GitHub
When running deploy, deploy only detect one file, public as symbolic link and not following the symbolic link. After moving the file to...
Read more >
955379 – systemctl enable fails for symlinks in /etc/systemd ...
If I create a custom service file at, say, `/etc/systemd/system/xyz.service` and then run `systemctl enable xyz.service`, it fails with the error: "Failed ......
Read more >
Storage in laravel says symlink - no such file - Stack Overflow
This problem comes when laravel project is moved/copied to some other folder. The storage link is still there thus causing the exception ...
Read more >
topic 104.6: Create and change hard and symbolic links
Symlinks do not prevent a file from being deleted. If the target file is moved or deleted, then the symlink will be broken....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found