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

deno install can't handle code and cache on different devices #26928

Open
shirok1 opened this issue Nov 19, 2024 · 0 comments
Open

deno install can't handle code and cache on different devices #26928

shirok1 opened this issue Nov 19, 2024 · 0 comments

Comments

@shirok1
Copy link

shirok1 commented Nov 19, 2024

Version: Deno 2.0.6

My code folder (/Volumes/Code) is a separated volume (so that it can be case-sensitive). When I was following https://deno.com/blog/build-astro-with-deno and ran deno install --allow-scripts:

Failed to clone dir "/Users/shiroki/Library/Caches/deno/npm/registry.npmjs.org/sisteransi/1.0.5" to "/Volumes/Code/osa/website/node_modules/.deno/[email protected]/node_modules/sisteransi" via clonefile: Cross-device link (os error 18)
......
Failed to clone dir "/Users/shiroki/Library/Caches/deno/npm/registry.npmjs.org/astro/4.16.13" to "/Volumes/Code/osa/website/node_modules/.deno/[email protected]/node_modules/astro" via clonefile: Cross-device link (os error 18)
error: script 'install' in '[email protected]' failed with exit code 1
stderr:
error: [ERR_MODULE_NOT_FOUND] Cannot find module 'file:///Volumes/Code/osa/website/node_modules/.deno/[email protected]/node_modules/sharp/install/check' imported from 'file:///Volumes/Code/osa/website/node_modules/.deno/[email protected]/node_modules/sharp'

error: failed to run scripts for packages: [email protected]

The package.json FYI:

{
  "name": "website",
  "type": "module",
  "version": "0.0.1",
  "scripts": {
    "dev": "astro dev",
    "start": "astro dev",
    "build": "astro check && astro build",
    "preview": "astro preview",
    "astro": "astro"
  },
  "dependencies": {
    "astro": "^4.16.13",
    "@astrojs/check": "^0.9.4",
    "typescript": "^5.6.3"
  }
}

What I found might be correlated:

#20246

#19879

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant