Opencode CLI won't install - Win11 Pro NVM for Windows, Node 24.5.0 x64 - Permission Errors #1310

Closed
opened 2026-02-16 17:30:23 -05:00 by yindo · 4 comments
Owner

Originally created by @futuremotiondev on GitHub (Aug 14, 2025).

Originally assigned to: @thdxr on GitHub.

  1. nvm use 24 ➔ Node 24.5.0 activates
  2. npm i -g opencode-ai@latest
  3. Error:
npm warn cleanup Failed to remove some directories [
npm warn cleanup   [
npm warn cleanup     '\\\\?\\C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-windows-x64'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-windows-x64'
npm warn cleanup     }
npm warn cleanup   ]
npm warn cleanup ]
npm error code 1
npm error path C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node ./postinstall.mjs
npm error Failed to create opencode binary symlink: EPERM: operation not permitted, symlink 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe' -> 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\bin\opencode'
npm error A complete log of this run can be found in: C:\Users\futur\AppData\Local\npm-cache\_logs\2025-08-14T21_36_20_547Z-debug-0.log

Log file contents:

0 verbose cli C:\nvm4w\nodejs\node.exe C:\nvm4w\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@11.5.2
2 info using node@v24.5.0
3 silly config load:file:C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\npmrc
4 silly config load:file:C:\Users\futur\.npmrc
5 silly config load:file:C:\nvm4w\nodejs\etc\npmrc
6 verbose title npm i opencode-ai@latest
7 verbose argv "i" "--global" "opencode-ai@latest"
8 verbose logfile logs-max:10 dir:C:\Users\futur\AppData\Local\npm-cache\_logs\2025-08-14T21_36_20_547Z-
9 verbose logfile C:\Users\futur\AppData\Local\npm-cache\_logs\2025-08-14T21_36_20_547Z-debug-0.log
10 silly packumentCache heap:4496293888 maxSize:1124073472 maxEntrySize:562036736
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 silly packumentCache corgi:https://registry.npmjs.org/opencode-ai cache-miss
14 http fetch GET 200 https://registry.npmjs.org/opencode-ai 553ms (cache miss)
15 silly packumentCache corgi:https://registry.npmjs.org/opencode-ai set size:undefined disposed:false
16 silly idealTree buildDeps
17 silly fetch manifest opencode-ai@0.5.1
18 silly packumentCache full:https://registry.npmjs.org/opencode-ai cache-miss
19 http fetch GET 200 https://registry.npmjs.org/opencode-ai 97ms (cache miss)
20 silly packumentCache full:https://registry.npmjs.org/opencode-ai set size:undefined disposed:false
21 silly placeDep ROOT opencode-ai@0.5.1 OK for:  want: 0.5.1
22 silly fetch manifest opencode-windows-x64@0.5.1
23 silly packumentCache full:https://registry.npmjs.org/opencode-windows-x64 cache-miss
24 silly fetch manifest opencode-linux-arm64@0.5.1
25 silly packumentCache full:https://registry.npmjs.org/opencode-linux-arm64 cache-miss
26 silly fetch manifest opencode-linux-x64@0.5.1
27 silly packumentCache full:https://registry.npmjs.org/opencode-linux-x64 cache-miss
28 silly fetch manifest opencode-linux-x64-baseline@0.5.1
29 silly packumentCache full:https://registry.npmjs.org/opencode-linux-x64-baseline cache-miss
30 silly fetch manifest opencode-darwin-x64@0.5.1
31 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-x64 cache-miss
32 silly fetch manifest opencode-darwin-x64-baseline@0.5.1
33 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-x64-baseline cache-miss
34 silly fetch manifest opencode-darwin-arm64@0.5.1
35 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-arm64 cache-miss
36 http fetch GET 200 https://registry.npmjs.org/opencode-windows-x64 87ms (cache miss)
37 silly packumentCache full:https://registry.npmjs.org/opencode-windows-x64 set size:undefined disposed:false
38 http fetch GET 200 https://registry.npmjs.org/opencode-linux-x64 158ms (cache miss)
39 silly packumentCache full:https://registry.npmjs.org/opencode-linux-x64 set size:undefined disposed:false
40 http fetch GET 200 https://registry.npmjs.org/opencode-linux-x64-baseline 192ms (cache miss)
41 silly packumentCache full:https://registry.npmjs.org/opencode-linux-x64-baseline set size:undefined disposed:false
42 http fetch GET 200 https://registry.npmjs.org/opencode-linux-arm64 235ms (cache miss)
43 silly packumentCache full:https://registry.npmjs.org/opencode-linux-arm64 set size:undefined disposed:false
44 http fetch GET 200 https://registry.npmjs.org/opencode-darwin-x64-baseline 266ms (cache miss)
45 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-x64-baseline set size:undefined disposed:false
46 http fetch GET 200 https://registry.npmjs.org/opencode-darwin-arm64 322ms (cache miss)
47 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-arm64 set size:undefined disposed:false
48 http fetch GET 200 https://registry.npmjs.org/opencode-darwin-x64 335ms (cache miss)
49 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-x64 set size:undefined disposed:false
50 silly placeDep node_modules/opencode-ai opencode-darwin-arm64@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1
51 silly placeDep node_modules/opencode-ai opencode-darwin-x64@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1
52 silly placeDep node_modules/opencode-ai opencode-darwin-x64-baseline@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1
53 silly placeDep node_modules/opencode-ai opencode-linux-arm64@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1
54 silly placeDep node_modules/opencode-ai opencode-linux-x64@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1
55 silly placeDep node_modules/opencode-ai opencode-linux-x64-baseline@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1
56 silly placeDep node_modules/opencode-ai opencode-windows-x64@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1
57 silly reify moves {}
58 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-linux-x64-baseline
59 silly reify mark deleted [
59 silly reify   'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-linux-x64-baseline'
59 silly reify ]
60 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-linux-x64
61 silly reify mark deleted [
61 silly reify   'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-linux-x64'
61 silly reify ]
62 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-linux-arm64
63 silly reify mark deleted [
63 silly reify   'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-linux-arm64'
63 silly reify ]
64 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-darwin-x64-baseline
65 silly reify mark deleted [
65 silly reify   'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-darwin-x64-baseline'
65 silly reify ]
66 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-darwin-x64
67 silly reify mark deleted [
67 silly reify   'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-darwin-x64'
67 silly reify ]
68 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-darwin-arm64
69 silly reify mark deleted [
69 silly reify   'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-darwin-arm64'
69 silly reify ]
70 http cache opencode-windows-x64@https://registry.npmjs.org/opencode-windows-x64/-/opencode-windows-x64-0.5.1.tgz 0ms (cache hit)
71 http cache opencode-ai@https://registry.npmjs.org/opencode-ai/-/opencode-ai-0.5.1.tgz 0ms (cache hit)
72 silly tarball no local data for opencode-windows-x64@https://registry.npmjs.org/opencode-windows-x64/-/opencode-windows-x64-0.5.1.tgz. Extracting by manifest.
73 silly tarball no local data for opencode-ai@https://registry.npmjs.org/opencode-ai/-/opencode-ai-0.5.1.tgz. Extracting by manifest.
74 http fetch GET 200 https://registry.npmjs.org/opencode-ai/-/opencode-ai-0.5.1.tgz 80ms (cache miss)
75 http fetch GET 200 https://registry.npmjs.org/opencode-windows-x64/-/opencode-windows-x64-0.5.1.tgz 1349ms (cache miss)
76 info run opencode-ai@0.5.1 postinstall node_modules/opencode-ai node ./postinstall.mjs
77 info run opencode-ai@0.5.1 postinstall { code: 1, signal: null }
78 warn cleanup Failed to remove some directories [
78 warn cleanup   [
78 warn cleanup     '\\\\?\\C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai',
78 warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-windows-x64'] {
78 warn cleanup       errno: -4048,
78 warn cleanup       code: 'EPERM',
78 warn cleanup       syscall: 'rmdir',
78 warn cleanup       path: 'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-windows-x64'
78 warn cleanup     }
78 warn cleanup   ]
78 warn cleanup ]
79 verbose stack Error: command failed
79 verbose stack     at promiseSpawn (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:22:22)
79 verbose stack     at spawnWithShell (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:124:10)
79 verbose stack     at promiseSpawn (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:12:12)
79 verbose stack     at runScriptPkg (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script-pkg.js:79:13)
79 verbose stack     at runScript (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script.js:9:12)
79 verbose stack     at C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\rebuild.js:331:17
79 verbose stack     at run (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:67:22)
79 verbose stack     at C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:84:9
79 verbose stack     at new Promise (<anonymous>)
79 verbose stack     at callLimit (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:35:69)
80 verbose pkgid opencode-ai@0.5.1
81 error code 1
82 error path C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai
83 error command failed
84 error command C:\WINDOWS\system32\cmd.exe /d /s /c node ./postinstall.mjs
85 error Failed to create opencode binary symlink: EPERM: operation not permitted, symlink 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe' -> 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\bin\opencode'
86 silly unfinished npm timer reify 1755207380686
87 silly unfinished npm timer reify:build 1755207383050
88 silly unfinished npm timer build 1755207383050
89 silly unfinished npm timer build:deps 1755207383050
90 silly unfinished npm timer build:run:postinstall 1755207383052
91 silly unfinished npm timer build:run:postinstall:node_modules/opencode-ai 1755207383053
92 verbose cwd C:\Users\futur
93 verbose os Windows_NT 10.0.26100
94 verbose node v24.5.0
95 verbose npm  v11.5.2
96 verbose exit 1
97 verbose code 1
98 error A complete log of this run can be found in: C:\Users\futur\AppData\Local\npm-cache\_logs\2025-08-14T21_36_20_547Z-debug-0.log

Not sure what the point of failure is. NVM? Node version? Messed up permissions?

Appreciate any help getting this sorted!

Originally created by @futuremotiondev on GitHub (Aug 14, 2025). Originally assigned to: @thdxr on GitHub. 1. `nvm use 24` ➔ Node 24.5.0 activates 2. `npm i -g opencode-ai@latest` 3. Error: ``` npm warn cleanup Failed to remove some directories [ npm warn cleanup [ npm warn cleanup '\\\\?\\C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-windows-x64'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-windows-x64' npm warn cleanup } npm warn cleanup ] npm warn cleanup ] npm error code 1 npm error path C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai npm error command failed npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node ./postinstall.mjs npm error Failed to create opencode binary symlink: EPERM: operation not permitted, symlink 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe' -> 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\bin\opencode' npm error A complete log of this run can be found in: C:\Users\futur\AppData\Local\npm-cache\_logs\2025-08-14T21_36_20_547Z-debug-0.log ``` Log file contents: ```log 0 verbose cli C:\nvm4w\nodejs\node.exe C:\nvm4w\nodejs\node_modules\npm\bin\npm-cli.js 1 info using npm@11.5.2 2 info using node@v24.5.0 3 silly config load:file:C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\npmrc 4 silly config load:file:C:\Users\futur\.npmrc 5 silly config load:file:C:\nvm4w\nodejs\etc\npmrc 6 verbose title npm i opencode-ai@latest 7 verbose argv "i" "--global" "opencode-ai@latest" 8 verbose logfile logs-max:10 dir:C:\Users\futur\AppData\Local\npm-cache\_logs\2025-08-14T21_36_20_547Z- 9 verbose logfile C:\Users\futur\AppData\Local\npm-cache\_logs\2025-08-14T21_36_20_547Z-debug-0.log 10 silly packumentCache heap:4496293888 maxSize:1124073472 maxEntrySize:562036736 11 silly logfile start cleaning logs, removing 1 files 12 silly logfile done cleaning log files 13 silly packumentCache corgi:https://registry.npmjs.org/opencode-ai cache-miss 14 http fetch GET 200 https://registry.npmjs.org/opencode-ai 553ms (cache miss) 15 silly packumentCache corgi:https://registry.npmjs.org/opencode-ai set size:undefined disposed:false 16 silly idealTree buildDeps 17 silly fetch manifest opencode-ai@0.5.1 18 silly packumentCache full:https://registry.npmjs.org/opencode-ai cache-miss 19 http fetch GET 200 https://registry.npmjs.org/opencode-ai 97ms (cache miss) 20 silly packumentCache full:https://registry.npmjs.org/opencode-ai set size:undefined disposed:false 21 silly placeDep ROOT opencode-ai@0.5.1 OK for: want: 0.5.1 22 silly fetch manifest opencode-windows-x64@0.5.1 23 silly packumentCache full:https://registry.npmjs.org/opencode-windows-x64 cache-miss 24 silly fetch manifest opencode-linux-arm64@0.5.1 25 silly packumentCache full:https://registry.npmjs.org/opencode-linux-arm64 cache-miss 26 silly fetch manifest opencode-linux-x64@0.5.1 27 silly packumentCache full:https://registry.npmjs.org/opencode-linux-x64 cache-miss 28 silly fetch manifest opencode-linux-x64-baseline@0.5.1 29 silly packumentCache full:https://registry.npmjs.org/opencode-linux-x64-baseline cache-miss 30 silly fetch manifest opencode-darwin-x64@0.5.1 31 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-x64 cache-miss 32 silly fetch manifest opencode-darwin-x64-baseline@0.5.1 33 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-x64-baseline cache-miss 34 silly fetch manifest opencode-darwin-arm64@0.5.1 35 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-arm64 cache-miss 36 http fetch GET 200 https://registry.npmjs.org/opencode-windows-x64 87ms (cache miss) 37 silly packumentCache full:https://registry.npmjs.org/opencode-windows-x64 set size:undefined disposed:false 38 http fetch GET 200 https://registry.npmjs.org/opencode-linux-x64 158ms (cache miss) 39 silly packumentCache full:https://registry.npmjs.org/opencode-linux-x64 set size:undefined disposed:false 40 http fetch GET 200 https://registry.npmjs.org/opencode-linux-x64-baseline 192ms (cache miss) 41 silly packumentCache full:https://registry.npmjs.org/opencode-linux-x64-baseline set size:undefined disposed:false 42 http fetch GET 200 https://registry.npmjs.org/opencode-linux-arm64 235ms (cache miss) 43 silly packumentCache full:https://registry.npmjs.org/opencode-linux-arm64 set size:undefined disposed:false 44 http fetch GET 200 https://registry.npmjs.org/opencode-darwin-x64-baseline 266ms (cache miss) 45 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-x64-baseline set size:undefined disposed:false 46 http fetch GET 200 https://registry.npmjs.org/opencode-darwin-arm64 322ms (cache miss) 47 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-arm64 set size:undefined disposed:false 48 http fetch GET 200 https://registry.npmjs.org/opencode-darwin-x64 335ms (cache miss) 49 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-x64 set size:undefined disposed:false 50 silly placeDep node_modules/opencode-ai opencode-darwin-arm64@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1 51 silly placeDep node_modules/opencode-ai opencode-darwin-x64@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1 52 silly placeDep node_modules/opencode-ai opencode-darwin-x64-baseline@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1 53 silly placeDep node_modules/opencode-ai opencode-linux-arm64@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1 54 silly placeDep node_modules/opencode-ai opencode-linux-x64@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1 55 silly placeDep node_modules/opencode-ai opencode-linux-x64-baseline@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1 56 silly placeDep node_modules/opencode-ai opencode-windows-x64@0.5.1 OK for: opencode-ai@0.5.1 want: 0.5.1 57 silly reify moves {} 58 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-linux-x64-baseline 59 silly reify mark deleted [ 59 silly reify 'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-linux-x64-baseline' 59 silly reify ] 60 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-linux-x64 61 silly reify mark deleted [ 61 silly reify 'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-linux-x64' 61 silly reify ] 62 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-linux-arm64 63 silly reify mark deleted [ 63 silly reify 'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-linux-arm64' 63 silly reify ] 64 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-darwin-x64-baseline 65 silly reify mark deleted [ 65 silly reify 'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-darwin-x64-baseline' 65 silly reify ] 66 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-darwin-x64 67 silly reify mark deleted [ 67 silly reify 'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-darwin-x64' 67 silly reify ] 68 verbose reify failed optional dependency C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-darwin-arm64 69 silly reify mark deleted [ 69 silly reify 'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-darwin-arm64' 69 silly reify ] 70 http cache opencode-windows-x64@https://registry.npmjs.org/opencode-windows-x64/-/opencode-windows-x64-0.5.1.tgz 0ms (cache hit) 71 http cache opencode-ai@https://registry.npmjs.org/opencode-ai/-/opencode-ai-0.5.1.tgz 0ms (cache hit) 72 silly tarball no local data for opencode-windows-x64@https://registry.npmjs.org/opencode-windows-x64/-/opencode-windows-x64-0.5.1.tgz. Extracting by manifest. 73 silly tarball no local data for opencode-ai@https://registry.npmjs.org/opencode-ai/-/opencode-ai-0.5.1.tgz. Extracting by manifest. 74 http fetch GET 200 https://registry.npmjs.org/opencode-ai/-/opencode-ai-0.5.1.tgz 80ms (cache miss) 75 http fetch GET 200 https://registry.npmjs.org/opencode-windows-x64/-/opencode-windows-x64-0.5.1.tgz 1349ms (cache miss) 76 info run opencode-ai@0.5.1 postinstall node_modules/opencode-ai node ./postinstall.mjs 77 info run opencode-ai@0.5.1 postinstall { code: 1, signal: null } 78 warn cleanup Failed to remove some directories [ 78 warn cleanup [ 78 warn cleanup '\\\\?\\C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai', 78 warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-windows-x64'] { 78 warn cleanup errno: -4048, 78 warn cleanup code: 'EPERM', 78 warn cleanup syscall: 'rmdir', 78 warn cleanup path: 'C:\\Users\\futur\\AppData\\Local\\nvm\\v24.5.0\\node_modules\\opencode-ai\\node_modules\\opencode-windows-x64' 78 warn cleanup } 78 warn cleanup ] 78 warn cleanup ] 79 verbose stack Error: command failed 79 verbose stack at promiseSpawn (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:22:22) 79 verbose stack at spawnWithShell (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:124:10) 79 verbose stack at promiseSpawn (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:12:12) 79 verbose stack at runScriptPkg (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script-pkg.js:79:13) 79 verbose stack at runScript (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script.js:9:12) 79 verbose stack at C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\rebuild.js:331:17 79 verbose stack at run (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:67:22) 79 verbose stack at C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:84:9 79 verbose stack at new Promise (<anonymous>) 79 verbose stack at callLimit (C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:35:69) 80 verbose pkgid opencode-ai@0.5.1 81 error code 1 82 error path C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai 83 error command failed 84 error command C:\WINDOWS\system32\cmd.exe /d /s /c node ./postinstall.mjs 85 error Failed to create opencode binary symlink: EPERM: operation not permitted, symlink 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe' -> 'C:\Users\futur\AppData\Local\nvm\v24.5.0\node_modules\opencode-ai\bin\opencode' 86 silly unfinished npm timer reify 1755207380686 87 silly unfinished npm timer reify:build 1755207383050 88 silly unfinished npm timer build 1755207383050 89 silly unfinished npm timer build:deps 1755207383050 90 silly unfinished npm timer build:run:postinstall 1755207383052 91 silly unfinished npm timer build:run:postinstall:node_modules/opencode-ai 1755207383053 92 verbose cwd C:\Users\futur 93 verbose os Windows_NT 10.0.26100 94 verbose node v24.5.0 95 verbose npm v11.5.2 96 verbose exit 1 97 verbose code 1 98 error A complete log of this run can be found in: C:\Users\futur\AppData\Local\npm-cache\_logs\2025-08-14T21_36_20_547Z-debug-0.log ``` Not sure what the point of failure is. NVM? Node version? Messed up permissions? Appreciate any help getting this sorted!
yindo closed this issue 2026-02-16 17:30:23 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 14, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1192: Windows postinstall failure with missing native packages and permission errors during npm global install
  • #631: General Windows support tracking issue for installation and permission problems

The error messages you're seeing appear to be related to npm's console output parsing rather than the actual permission errors. Your real issue seems to be the EPERM symlink creation failure mentioned at the end. Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Aug 14, 2025): This issue might be a duplicate of existing issues. Please check: - #1192: Windows postinstall failure with missing native packages and permission errors during npm global install - #631: General Windows support tracking issue for installation and permission problems The error messages you're seeing appear to be related to npm's console output parsing rather than the actual permission errors. Your real issue seems to be the EPERM symlink creation failure mentioned at the end. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Aug 14, 2025):

@futuremotiondev btw we track windows support here

@rekram1-node commented on GitHub (Aug 14, 2025): @futuremotiondev btw we track windows support [here](https://github.com/sst/opencode/issues/631)
Author
Owner

@rekram1-node commented on GitHub (Sep 23, 2025):

@itsrainingmani

@rekram1-node commented on GitHub (Sep 23, 2025): @itsrainingmani
Author
Owner

@rekram1-node commented on GitHub (Oct 21, 2025):

closing due to inactivity

@rekram1-node commented on GitHub (Oct 21, 2025): closing due to inactivity
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1310