-
Notifications
You must be signed in to change notification settings - Fork 29
Description
pnpm create solana-program
Create Solana Program
√ Program name: ... my-program
√ Organization name: ... solana-program
√ Program crate name: ... solana-program-my-program
√ Program framework: » Anchor
√ Generated clients: » JavaScript Client, Rust Client
√ JavaScript client package name: ... @solana-program/my-program
√ Rust client crate name: ... solana-program-my-program-client
node:events:496
throw er; // Unhandled 'error' event
^
Error: spawn which ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn which',
path: 'which',
spawnargs: [ 'solana' ]
}
Node.js v22.11.0
solana-cli 1.18.18 (src:83047136; feat:4215500110, client:SolanaLabs)
anchor-cli 0.31.1
rustc 1.85.0 (4d91de4e4 2025-02-17)
the complete log is :
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using [email protected]
2 info using [email protected]
3 silly config load:file:C:\Program Files\nodejs\node_modules\npm\npmrc
4 silly config load:file:C:\users\user.npmrc
5 silly config load:file:C:\Users\user.npmrc
6 silly config load:file:C:\Users\user\AppData\Roaming\npm\etc\npmrc
7 verbose title npm create solana-program@latest
8 verbose argv "create" "solana-program@latest"
9 verbose logfile logs-max:10 dir:C:\Users\user\AppData\Local\npm-cache_logs\2025-07-13T08_47_36_162Z-
10 verbose logfile C:\Users\user\AppData\Local\npm-cache_logs\2025-07-13T08_47_36_162Z-debug-0.log
11 silly logfile start cleaning logs, removing 1 files
12 silly logfile done cleaning log files
13 silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368
14 http fetch GET 200 https://registry.npmjs.org/create-solana-program 796ms (cache miss)
15 silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368
16 silly idealTree buildDeps
17 silly fetch manifest [email protected]
18 silly packumentCache full:https://registry.npmjs.org/create-solana-program cache-miss
19 http fetch GET 200 https://registry.npmjs.org/create-solana-program 1030ms (cache miss)
20 silly packumentCache full:https://registry.npmjs.org/create-solana-program set size:undefined disposed:false
21 silly placeDep ROOT [email protected] OK for: want: 0.3.18
22 silly reify moves {}
23 silly audit bulk request { 'create-solana-program': [ '0.3.18' ] }
24 silly tarball no local data for create-solana-program@https://registry.npmjs.org/create-solana-program/-/create-solana-program-0.3.18.tgz. Extracting by manifest.
25 http fetch GET 200 https://registry.npmjs.org/create-solana-program/-/create-solana-program-0.3.18.tgz 150ms (cache miss)
26 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 270ms
27 silly audit report {}
28 verbose stack Error: command failed
28 verbose stack at promiseSpawn (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\promise-spawn\lib\index.js:22:22)
28 verbose stack at spawnWithShell (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\promise-spawn\lib\index.js:124:10)
28 verbose stack at promiseSpawn (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\promise-spawn\lib\index.js:12:12)
28 verbose stack at runScriptPkg (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\run-script\lib\run-script-pkg.js:77:13)
28 verbose stack at runScript (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\run-script\lib\run-script.js:9:12)
28 verbose stack at run (C:\Program Files\nodejs\node_modules\npm\node_modules\libnpmexec\lib\run-script.js:48:10)
28 verbose stack at async exec (C:\Program Files\nodejs\node_modules\npm\node_modules\libnpmexec\lib\index.js:298:10)
28 verbose stack at async Init.execCreate (C:\Program Files\nodejs\node_modules\npm\lib\commands\init.js:135:5)
28 verbose stack at async Init.exec (C:\Program Files\nodejs\node_modules\npm\lib\commands\init.js:44:14)
28 verbose stack at async Npm.exec (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:207:9)
29 error code 1
30 error path C:\users\user
31 error command failed
32 error command C:\Windows\system32\cmd.exe /d /s /c create-solana-program
33 verbose cwd C:\users\user
34 verbose os Windows_NT 10.0.19045
35 verbose node v22.11.0
36 verbose npm v10.9.0
37 verbose exit 1
38 verbose code 1