Skip to content

Unable to install hono project dependency #87

@Yoder2k4

Description

@Yoder2k4

What version of Hono are you using?

0.15.3

What runtime/platform is your app running on? (with version if possible)

Cloudflare Workers

What steps can reproduce the bug?

npm create hono@latest

What is the expected behavior?

Honojs will be installed, using cloudflare-workers template

What do you see instead?

yoder2k4@yoder-pc-linux:~/Comding/Dev/temp$ npm create hono@latest backend

> npx
> create-hono backend

create-hono version 0.15.3
✔ Using target directory … backend
? Which template do you want to use? cloudflare-workers
? Do you want to install project dependencies? yes
? Which package manager do you want to use? npm
✔ Cloning the template
× Failed to install project dependencies
npm error code 1
npm error path /home/yoder2k4/Comding/Dev/temp
npm error command failed
npm error command sh -c create-hono backend
npm error A complete log of this run can be found in: /home/yoder2k4/.npm/_logs/2025-03-15T08_34_52_978Z-debug-0.log

What OS are you using

Ubuntu 24.04.2

What happens when I run the command without installing project dependencies?

yoder2k4@yoder-pc-linux:~/Comding/Dev/temp$ npm create hono@latest backend

> npx
> create-hono backend

create-hono version 0.15.3
✔ Using target directory … backend
? Which template do you want to use? cloudflare-workers
? Do you want to install project dependencies? no
✔ Cloning the template
yoder2k4@yoder-pc-linux:~/Comding/Dev/temp$

Then explicitly installing the project dependencies:

yoder2k4@yoder-pc-linux:~/Comding/Dev/temp/backend$ npm i
npm warn deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm warn deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead

added 61 packages, and audited 62 packages in 20s

6 packages are looking for funding
  run `npm fund` for details

5 vulnerabilities (3 low, 2 moderate)

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Log File content?

yoder2k4@yoder-pc-linux:~/.npm/_logs$ cat 2025-03-15T08_34_52_978Z-debug-0.log
0 verbose cli /snap/node/9905/bin/node /usr/local/bin/npm
1 info using [email protected]
2 info using [email protected]
3 silly config load:file:/usr/local/lib/node_modules/npm/npmrc
4 silly config load:file:/home/yoder2k4/Comding/Dev/temp/.npmrc
5 silly config load:file:/home/yoder2k4/.npmrc
6 silly config load:file:/snap/node/9905/etc/npmrc
7 verbose title npm create hono@latest backend
8 verbose argv "create" "hono@latest" "backend"
9 verbose logfile logs-max:10 dir:/home/yoder2k4/.npm/_logs/2025-03-15T08_34_52_978Z-
10 verbose logfile /home/yoder2k4/.npm/_logs/2025-03-15T08_34_52_978Z-debug-0.log
11 silly logfile start cleaning logs, removing 3 files
12 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912
13 silly logfile done cleaning log files
14 http fetch GET 200 https://registry.npmjs.org/create-hono 1167ms (cache updated)
15 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912
16 verbose stack Error: command failed
16 verbose stack     at promiseSpawn (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22)
16 verbose stack     at spawnWithShell (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10)
16 verbose stack     at promiseSpawn (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12)
16 verbose stack     at runScriptPkg (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:77:13)
16 verbose stack     at runScript (/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:9:12)
16 verbose stack     at run (/usr/local/lib/node_modules/npm/node_modules/libnpmexec/lib/run-script.js:48:10)
16 verbose stack     at async exec (/usr/local/lib/node_modules/npm/node_modules/libnpmexec/lib/index.js:298:10)
16 verbose stack     at async Init.execCreate (/usr/local/lib/node_modules/npm/lib/commands/init.js:135:5)
16 verbose stack     at async Init.exec (/usr/local/lib/node_modules/npm/lib/commands/init.js:44:14)
16 verbose stack     at async Npm.exec (/usr/local/lib/node_modules/npm/lib/npm.js:207:9)
17 error code 1
18 error path /home/yoder2k4/Comding/Dev/temp
19 error command failed
20 error command sh -c create-hono backend
21 verbose cwd /home/yoder2k4/Comding/Dev/temp
22 verbose os Linux 6.11.0-19-generic
23 verbose node v20.19.0
24 verbose npm  v10.9.2
25 verbose exit 1
26 verbose code 1
27 error A complete log of this run can be found in: /home/yoder2k4/.npm/_logs/2025-03-15T08_34_52_978Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions