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

[windows] rnv link doesn't work #1596

Closed
pauliusguzas opened this issue Jun 4, 2024 · 0 comments
Closed

[windows] rnv link doesn't work #1596

pauliusguzas opened this issue Jun 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@pauliusguzas
Copy link
Collaborator

Describe the bug
rnv link doesn't work on windows OS

To Reproduce

  1. checkout release/1.0
  2. create new project using local template
  3. do rnv link

Expected behavior
rnv link works

Screenshots or copy&paste

PS C:\Users\dev\Desktop\hello-renative> rnv link

┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗   ██╗ █████╗ ████████╗██╗██╗   ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗  ██║██╔══██╗╚══██╔══╝██║██║   ██║██╔════╝ │
│ ██████╔╝█████╗  ██╔██╗ ██║███████║   ██║   ██║██║   ██║█████╗   │
│ ██╔══██╗██╔══╝  ██║╚██╗██║██╔══██║   ██║   ██║╚██╗ ██╔╝██╔══╝   │
│ ██║  ██║███████╗██║ ╚████║██║  ██║   ██║   ██║ ╚████╔╝ ███████╗ │
│ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═══╝  ╚══════╝ │
│ RNV v:1.0.0-rc.19 | renative.org | 30/05/2024, 20:34:42         │
│ $ rnv link                                                      │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: @rnv/engine-core (C:\Users\dev\Desktop\renative\packages\engine-core\lib)
task: ○ link ↺1
info: Found following source packages:

C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\adapter (unlinked)
C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\cli (unlinked)
C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\config-templates (unlinked)
C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\core (unlinked)
C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\engine-core (unlinked)
C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\sdk-telemetry (unlinked)
C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\sdk-utils (unlinked)
C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\template-starter (unlinked)

? Found following packages to link? @rnv/adapter, @rnv/cli, @rnv/config-templates, @rnv/core, @rnv/engine-core, @rnv/sdk
-telemetry, @rnv/sdk-utils, @rnv/template-starter
info: Linking packages...
info: @rnv/adapter found in exisitng cache. Removing and relinking...
error: ⨯  Error: EPERM: operation not permitted, rename 'C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\adapter' -> 'C:\Users\dev\Desktop\hello-renative\node_modules\.rnv\unlinked_cache\@rnv\adapter'
    at Object.renameSync (node:fs:1035:3)
    at fsRenameSync (C:\Users\dev\Desktop\renative\packages\core\src\system\fs.ts:40:86)
    at _linkPackage (C:\Users\dev\Desktop\renative\packages\engine-core\src\tasks\linking\taskLink.ts:35:21)
    at C:\Users\dev\Desktop\renative\packages\engine-core\src\tasks\linking\taskLink.ts:84:13
    at Array.forEach (<anonymous>)
    at C:\Users\dev\Desktop\renative\packages\engine-core\src\tasks\linking\taskLink.ts:83:34
    at step (C:\Users\dev\Desktop\renative\node_modules\tslib\tslib.js:195:27)
    at Object.next (C:\Users\dev\Desktop\renative\node_modules\tslib\tslib.js:176:57)
    at fulfilled (C:\Users\dev\Desktop\renative\node_modules\tslib\tslib.js:166:62)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

┌─────────────────────────────────────────────────────────────────┐
│ ⨯ SUMMARY | 30/05/2024, 20:34:44 | [email protected]              │
│ $ rnv link                                                      │
├─────────────────────────────────────────────────────────────────┤
│ Project: [email protected]                                   │
│ Workspace: rnv                                                  │
│ Engine: @rnv/engine-core                                        │
│ Build Scheme (-s): debug                                        │
│ Env Info: win32 | x64 | node v18.19.0                           │
│ Executed Time: 0h:0m:1s:348ms                                   │
│ error: ⨯  Error: EPERM: operation not permitted, rename 'C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\adapter' -> 'C:\Users\dev\Desktop\hello-renative\node_modules\.rnv\unlinked_cache\@rnv\adapter'
    at Object.renameSync (node:fs:1035:3)
    at fsRenameSync (C:\Users\dev\Desktop\renative\packages\core\src\system\fs.ts:40:86)
    at _linkPackage (C:\Users\dev\Desktop\renative\packages\engine-core\src\tasks\linking\taskLink.ts:35:21)
    at C:\Users\dev\Desktop\renative\packages\engine-core\src\tasks\linking\taskLink.ts:84:13
    at Array.forEach (<anonymous>)
    at C:\Users\dev\Desktop\renative\packages\engine-core\src\tasks\linking\taskLink.ts:83:34
    at step (C:\Users\dev\Desktop\renative\node_modules\tslib\tslib.js:195:27)
    at Object.next (C:\Users\dev\Desktop\renative\node_modules\tslib\tslib.js:176:57)
    at fulfilled (C:\Users\dev\Desktop\renative\node_modules\tslib\tslib.js:166:62)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

└─────────────────────────────────────────────────────────────────┘

Desktop (please complete the following information):

  • OS: Windows 10 Pro
  • Node Version 18.19.0
  • RNV Version 1.0.0-rc.19
  • rnv/template-starter Version 1.0.0-rc.19
@pauliusguzas pauliusguzas added the bug Something isn't working label Jun 4, 2024
@RicardasN RicardasN self-assigned this Jun 17, 2024
@pavjacko pavjacko added this to the 1.0 milestone Jul 3, 2024
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

4 participants