yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Error: EROFS: read-only file system, symlink

Open hphirke opened this issue 9 years ago • 10 comments

I don't understand why yarn is trying to setup and sym link !!

The code actually resides in location: ~/host/dev/mongo/hw1-3 Contents of yarn-error.log file:

Arguments: /home/ubuntu/.nvm/versions/node/v6.10.1/bin/node /usr/share/yarn/bin/yarn.js install

PATH: /home/ubuntu/.nvm/versions/node/v6.10.1/bin:/home/ubuntu/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

Yarn version: 0.21.3

Node version: 6.10.1

Platform: linux x64

npm manifest: { "name": "hw1-3", "version": "0.0.0", "description": "Homework 1.3", "main": "app.js", "dependencies": { "consolidate": "~0.13.1", "crypto": "0.0.3", "express": "~4.13.3", "mongodb": "~2.1.3", "nunjucks": "~2.2.0" }, "author": "You", "license": "0BSD", "private": true }

yarn manifest: No manifest

Lockfile: No lockfile

Trace: Error: EROFS: read-only file system, symlink '../../../mime/cli.js' -> '/home/ubuntu/host/dev/mongo/hw1-3/node_modules/send/node_modules/.bin/mime' at Error (native)

hphirke avatar Mar 24 '17 11:03 hphirke

Are you inside a VM ? May be related to this issue (929)

dalsh avatar May 15 '17 13:05 dalsh

Yes Its VM and not working on mounted partition

hphirke avatar May 15 '17 15:05 hphirke

Then I guess you should try adding --no-bin-links to your call

dalsh avatar May 16 '17 08:05 dalsh

Is the workaround working? If so I'll close the issue

bestander avatar Jun 22 '17 03:06 bestander

Sorry about my typo in comment. But it's not working on mounted partition in a Virtual box VM

hphirke avatar Jun 22 '17 05:06 hphirke

@himanshuphirke, does it work with --no-bin-links flag? Could you explain the situation with the read-only FS? Why does it install node_modules fine but not the symlink?

bestander avatar Jun 23 '17 01:06 bestander

The project folder is on a mounted partition. The OS on which this is worked is a Ubuntu VM (VirtualBox). The mounted partition works for installing only sym links are errored.

So in my first comment: ~/host

is a mounted partition

hphirke avatar Jun 30 '17 11:06 hphirke

Thanks for clarification, @himanshuphirke, so the solution would be to disable symlinks inside node_modules completely? I guess --no-bin-links flag should be the only solution

bestander avatar Jun 30 '17 17:06 bestander

Isn't it a problem while installing over a VM partition? I mean there is a workaround but the original problem still exists

hphirke avatar Jul 04 '17 07:07 hphirke

For people coming here in search of an answer, you can also choose to allow symlinks for VirtualBox guests and yarn will work natively.

queicherius avatar Jan 23 '18 13:01 queicherius