Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: EXDEV: cross-device link not permitted, #106

Open
nhahv opened this issue Oct 18, 2022 · 3 comments
Open

Error: EXDEV: cross-device link not permitted, #106

nhahv opened this issue Oct 18, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@nhahv
Copy link

nhahv commented Oct 18, 2022

Provide installed version

[Ultra] v0.7.0

Current platform

Windows, WSL (Ubuntu 22.04 LTS)

Describe the Bug

My old project is up and running on an other hard disk partition

  • Run ultra clear to clean up
✔ Cleared cache!
✔ Cleared node_modules!
✔ Cleared all packages!
  • Run ultra install
[Ultra] v0.7.0 (448.52ms)
ℹ Using https://registry.npmjs.org/ as registry...
⚡ Installed local packages in 0.20 ms!
✖ Error: EXDEV: cross-device link not permitted, link '/root/.ultra-cache/@nestjs/config/2.2.0/.ultra' -> '/mnt/e/project/api/node_modules/@nestjs/config/.ultra' (file: /root/.ultra-cache/@nestjs/config/2.2.0/.ultra, target: /mnt/e/project/api/node_modules/@nestjs/config/.ultra)
✖ Error: EXDEV: cross-device link not permitted, link '/root/.ultra-cache/@nestjs/config/2.2.0/.vscode/settings.json' -> '/mnt/e/project/api/node_modules/@nestjs/config/.vscode/settings.json' (file: /root/.ultra-cache/@nestjs/config/2.2.0/.vscode/settings.json, target: /mnt/e/project/api/node_modules/@nestjs/config/.vscode/settings.json)
✖ Error: EXDEV: cross-device link not permitted, link '/root/.ultra-cache/@nestjs/config/2.2.0/LICENSE' -> '/mnt/e/project/api/node_modules/@nestjs/config/LICENSE' (file: /root/.ultra-cache/@nestjs/config/2.2.0/LICENSE, target: /mnt/e/project/api/node_modules/@nestjs/config/LICENSE)
✖ Error: EXDEV: cross-device link not permitted, link '/root/.ultra-cache/@nestjs/config/2.2.0/README.md' -> '/mnt/e/project/api/node_modules/@nestjs/config/README.md' (file: /root/.ultra-cache/@nestjs/config/2.2.0/README.md, target: /mnt/e/project/api/node_modules/@nestjs/config/README.md)

Expected Behavior

Fix this solution for cross device.

Template command (if applicable)

No response

To Reproduce

  • Create nestjs app on device E:
  • Run ultra install
@nachoaldamav nachoaldamav self-assigned this Oct 18, 2022
@nachoaldamav nachoaldamav added the bug Something isn't working label Oct 18, 2022
@nachoaldamav
Copy link
Owner

I thought it was fixed with this commit. 6154abb

@nachoaldamav
Copy link
Owner

It's weird because it works in CodeSpaces. (In codespaces the store is in a different drive)
image

@max-programming
Copy link
Contributor

I'm getting the same error right now

➜ ultra i typescript ts-node-dev @types/node -D
[Ultra] v0.8.10 (62.21ms)
ℹ Using https://registry.npmjs.org/ as registry...
ℹ Using C:\Users\Admin\.ultra-cache as cache directory...
⚡ Installed local packages in 0.00ms!
📦 >>>>>>>>> [email protected] (cache miss)node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: EXDEV: cross-device link not permitted, link 'C:\Users\Admin\.ultra-cache\ts-node-dev\2.0.0\.ultra' -> 'E:\Nodejs\colab-subtitles\node_modules\ts-node-dev\.ultra'] {
  errno: -4037,
  code: 'EXDEV',
  syscall: 'link',
  path: 'C:\\Users\\Admin\\.ultra-cache\\ts-node-dev\\2.0.0\\.ultra',
  dest: 'E:\\Nodejs\\colab-subtitles\\node_modules\\ts-node-dev\\.ultra'
}

Node.js v18.12.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants