nachoaldamav / ultra

JavaScript package manager
https://ultrapkg.dev/
MIT License
568 stars 15 forks source link

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

Open nhahv opened 1 year ago

nhahv commented 1 year ago

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

Expected Behavior

Fix this solution for cross device.

Template command (if applicable)

No response

To Reproduce

nachoaldamav commented 1 year ago

I thought it was fixed with this commit. https://github.com/nachoaldamav/ultra/commit/6154abb3c2c94888f3e70b3868f70012598573f8

nachoaldamav commented 1 year ago

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

max-programming commented 1 year ago

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!
📦 >>>>>>>>> ts-node-dev@2.0.0 (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