Repository navigation
I can't install via NPM #605
Copy link
Copy link
Closed
Description
Hi there,
I am trying to install opencode-ai@latest to my windows 11 with npm but this error shows up:
C:\Users\Raldin Casidar>npm i -g opencode-ai@latest
npm error code 1
npm error path C:\Users\Raldin Casidar\AppData\Roaming\npm\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: Could not find package opencode-win32-x64: Cannot find module 'opencode-win32-x64/package.json'
npm error Require stack:
npm error - C:\Users\Raldin Casidar\AppData\Roaming\npm\node_modules\opencode-ai\postinstall.mjs
npm error A complete log of this run can be found in: C:\Users\Raldin Casidar\AppData\Local\npm-cache\_logs\2025-07-02T09_51_56_930Z-debug-0.log
Here is the debug log:
Complete Log:
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@10.9.0
2 info using node@v22.11.0
3 silly config load:file:C:\Program Files\nodejs\node_modules\npm\npmrc
4 silly config load:file:C:\Users\Raldin Casidar\.npmrc
5 silly config load:file:C:\Users\Raldin Casidar\AppData\Roaming\npm\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\Raldin Casidar\AppData\Local\npm-cache\_logs\2025-07-02T09_51_56_930Z-
9 verbose logfile C:\Users\Raldin Casidar\AppData\Local\npm-cache\_logs\2025-07-02T09_51_56_930Z-debug-0.log
10 silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368
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 1039ms (cache revalidated)
15 silly packumentCache corgi:https://registry.npmjs.org/opencode-ai set size:492340 disposed:false
16 silly idealTree buildDeps
17 silly fetch manifest opencode-ai@0.1.174
18 silly packumentCache full:https://registry.npmjs.org/opencode-ai cache-miss
19 http fetch GET 200 https://registry.npmjs.org/opencode-ai 648ms (cache revalidated)
20 silly packumentCache full:https://registry.npmjs.org/opencode-ai set size:881881 disposed:false
21 silly placeDep ROOT opencode-ai@0.1.174 OK for: want: 0.1.174
22 silly fetch manifest opencode-linux-x64@0.1.174
23 silly packumentCache full:https://registry.npmjs.org/opencode-linux-x64 cache-miss
24 silly fetch manifest opencode-darwin-x64@0.1.174
25 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-x64 cache-miss
26 silly fetch manifest opencode-linux-arm64@0.1.174
27 silly packumentCache full:https://registry.npmjs.org/opencode-linux-arm64 cache-miss
28 silly fetch manifest opencode-windows-x64@0.1.174
29 silly packumentCache full:https://registry.npmjs.org/opencode-windows-x64 cache-miss
30 silly fetch manifest opencode-darwin-arm64@0.1.174
31 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-arm64 cache-miss
32 http fetch GET 200 https://registry.npmjs.org/opencode-darwin-arm64 867ms (cache revalidated)
33 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-arm64 set size:764861 disposed:false
34 http fetch GET 200 https://registry.npmjs.org/opencode-windows-x64 924ms (cache revalidated)
35 silly packumentCache full:https://registry.npmjs.org/opencode-windows-x64 set size:453141 disposed:false
36 http fetch GET 200 https://registry.npmjs.org/opencode-darwin-x64 928ms (cache revalidated)
37 silly packumentCache full:https://registry.npmjs.org/opencode-darwin-x64 set size:759852 disposed:false
38 http fetch GET 200 https://registry.npmjs.org/opencode-linux-x64 945ms (cache revalidated)
39 silly packumentCache full:https://registry.npmjs.org/opencode-linux-x64 set size:757934 disposed:false
40 http fetch GET 200 https://registry.npmjs.org/opencode-linux-arm64 950ms (cache revalidated)
41 silly packumentCache full:https://registry.npmjs.org/opencode-linux-arm64 set size:767819 disposed:false
42 silly placeDep node_modules/opencode-ai opencode-darwin-arm64@0.1.174 OK for: opencode-ai@0.1.174 want: 0.1.174
43 silly placeDep node_modules/opencode-ai opencode-darwin-x64@0.1.174 OK for: opencode-ai@0.1.174 want: 0.1.174
44 silly placeDep node_modules/opencode-ai opencode-linux-arm64@0.1.174 OK for: opencode-ai@0.1.174 want: 0.1.174
45 silly placeDep node_modules/opencode-ai opencode-linux-x64@0.1.174 OK for: opencode-ai@0.1.174 want: 0.1.174
46 silly placeDep node_modules/opencode-ai opencode-windows-x64@0.1.174 OK for: opencode-ai@0.1.174 want: 0.1.174
47 silly reify moves {}
48 verbose reify failed optional dependency C:\Users\Raldin Casidar\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-linux-x64
49 silly reify mark deleted [
49 silly reify 'C:\\Users\\Raldin Casidar\\AppData\\Roaming\\npm\\node_modules\\opencode-ai\\node_modules\\opencode-linux-x64'
49 silly reify ]
50 verbose reify failed optional dependency C:\Users\Raldin Casidar\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-linux-arm64
51 silly reify mark deleted [
51 silly reify 'C:\\Users\\Raldin Casidar\\AppData\\Roaming\\npm\\node_modules\\opencode-ai\\node_modules\\opencode-linux-arm64'
51 silly reify ]
52 verbose reify failed optional dependency C:\Users\Raldin Casidar\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-darwin-x64
53 silly reify mark deleted [
53 silly reify 'C:\\Users\\Raldin Casidar\\AppData\\Roaming\\npm\\node_modules\\opencode-ai\\node_modules\\opencode-darwin-x64'
53 silly reify ]
54 verbose reify failed optional dependency C:\Users\Raldin Casidar\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-darwin-arm64
55 silly reify mark deleted [
55 silly reify 'C:\\Users\\Raldin Casidar\\AppData\\Roaming\\npm\\node_modules\\opencode-ai\\node_modules\\opencode-darwin-arm64'
55 silly reify ]
56 info run opencode-ai@0.1.174 postinstall node_modules/opencode-ai node ./postinstall.mjs
57 info run opencode-ai@0.1.174 postinstall { code: 1, signal: null }
58 verbose stack Error: command failed
58 verbose stack at promiseSpawn (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:22:22)
58 verbose stack at spawnWithShell (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:124:10)
58 verbose stack at promiseSpawn (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:12:12)
58 verbose stack at runScriptPkg (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script-pkg.js:77:13)
58 verbose stack at runScript (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script.js:9:12)
58 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\rebuild.js:329:17
58 verbose stack at run (C:\Program Files\nodejs\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:67:22)
58 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:84:9
58 verbose stack at new Promise (<anonymous>)
58 verbose stack at callLimit (C:\Program Files\nodejs\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:35:69)
59 verbose pkgid opencode-ai@0.1.174
60 error code 1
61 error path C:\Users\Raldin Casidar\AppData\Roaming\npm\node_modules\opencode-ai
62 error command failed
63 error command C:\WINDOWS\system32\cmd.exe /d /s /c node ./postinstall.mjs
64 error Failed to create opencode binary symlink: Could not find package opencode-win32-x64: Cannot find module 'opencode-win32-x64/package.json'
64 error Require stack:
64 error - C:\Users\Raldin Casidar\AppData\Roaming\npm\node_modules\opencode-ai\postinstall.mjs
65 silly unfinished npm timer reify 1751449917596
66 silly unfinished npm timer reify:build 1751449923187
67 silly unfinished npm timer build 1751449923188
68 silly unfinished npm timer build:deps 1751449923188
69 silly unfinished npm timer build:run:postinstall 1751449923222
70 silly unfinished npm timer build:run:postinstall:node_modules/opencode-ai 1751449923223
71 verbose cwd C:\Users\Raldin Casidar
72 verbose os Windows_NT 10.0.26100
73 verbose node v22.11.0
74 verbose npm v10.9.0
75 verbose exit 1
76 verbose code 1
77 error A complete log of this run can be found in: C:\Users\Raldin Casidar\AppData\Local\npm-cache\_logs\2025-07-02T09_51_56_930Z-debug-0.log
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
sickmz commentedon Jul 2, 2025
you can directly open the binary using git bash, if you use cmd or powershell the keyboard input doesn't work
thdxr commentedon Jul 3, 2025
closing in favor of #663
fix: keep long sessions responsive in session view (anomalyco#605)