-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
fix(Windows:Link): Initial fix that passes the link phase #1613
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested on Windows 10 Pro, Node v18.19.0 ->
C:\Users\dev\Desktop\hello-renative>rnv link
┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ RNV v:1.0.0-rc.19 | renative.org | 21/06/2024, 11:21:47 │
│ $ 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...
error: ⨯ Error: EPERM: operation not permitted, symlink 'C:\Users\dev\Desktop\renative\packages\adapter' -> 'C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\adapter'
at Object.symlinkSync (node:fs:1814:3)
at fsSymlinkSync (C:\Users\dev\Desktop\renative\packages\core\src\system\fs.ts:59:8)
at _linkPackage (C:\Users\dev\Desktop\renative\packages\engine-core\src\tasks\linking\taskLink.ts:36:22)
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 | 21/06/2024, 11:21:49 | rnv@1.0.0-rc.19 │
│ $ rnv link │
├─────────────────────────────────────────────────────────────────┤
│ Project: hello-renative@0.1.0 │
│ Workspace: rnv │
│ Engine: @rnv/engine-core │
│ Build Scheme (-s): debug │
│ Env Info: win32 | x64 | node v18.19.0 │
│ Executed Time: 0h:0m:1s:538ms │
│ error: ⨯ Error: EPERM: operation not permitted, symlink 'C:\Users\dev\Desktop\renative\packages\adapter' -> 'C:\Users\dev\Desktop\hello-renative\node_modules\@rnv\adapter'
at Object.symlinkSync (node:fs:1814:3)
at fsSymlinkSync (C:\Users\dev\Desktop\renative\packages\core\src\system\fs.ts:59:8)
at _linkPackage (C:\Users\dev\Desktop\renative\packages\engine-core\src\tasks\linking\taskLink.ts:36:22)
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)
└─────────────────────────────────────────────────────────────────┘
(node:424) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)
C:\Users\dev\Desktop\hello-renative>
Cleaned everything and cannot reproduce the error, am I doing anything wrong? I am testing on Windows 10 22H PC. |
@RicardasN steps seems the same ->
|
On my personal win pc works, minion same result as @GabrieleKaceviciute |
Description
Related issues
Npm releases
n/a
Screenshots