Skip to content

Create fails when /tmp is on a different filesystem than /home #19

@macdonst

Description

@macdonst
npx "@enhance/cli@latest" new ./test-project -y
Error: EXDEV: cross-device link not permitted, rename '/tmp/0053605a-ed57-46bd-975a-0ea0d25fe64e/package' -> '/home/test-user/test-project'
it's a new directory
at createProject (file:///home/johan/.npm/_npx/3ac2b0dd91c96861/node_modules/@enhance/create/create-project.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async module.exports (/home/johan/.npm/_npx/3ac2b0dd91c96861/node_modules/@enhance/cli/src/commands/new/action.js:36:5)
    at async runCommand (/home/johan/.npm/_npx/3ac2b0dd91c96861/node_modules/@enhance/cli/src/commands/index.js:57:22)
    at async enhance (/home/johan/.npm/_npx/3ac2b0dd91c96861/node_modules/@enhance/cli/src/index.js:37:5) {
  errno: -18,
  syscall: 'rename',
  code: 'EXDEV',
  path: '/tmp/0053605a-ed57-46bd-975a-0ea0d25fe64e/package',
  dest: '/home/test-user/test-project'
}
Error: Existing Enhance app already found in this directory

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions