ish-app / ish-app/ish

Has anyone gotten nodejs and npm running?

Open
#2,120 3 comments 0 reactions 0 assignees View on GitHub
unconfirmed
Dominant language
C
Stars
20.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

I’m trying to run a simple http server and browse files/pages from Safari.

Installing nodejs works:

```
Mark-Smiths-iPod:~# apk add nodejs
fetch http://apk.ish.app/v3.14-2023-05-19/main/x86/APKINDEX.tar.gz
fetch http://apk.ish.app/v3.14-2023-05-19/community/x86/APKINDEX.tar.gz
(1/7) Installing ca-certificates (20230506-r0)
(2/7) Installing nghttp2-libs (1.43.0-r0)
(3/7) Installing brotli-libs (1.0.9-r5)
(4/7) Installing c-ares (1.17.2-r0)
(5/7) Installing libgcc (10.3.1_git20210424-r2)
(6/7) Installing libstdc++ (10.3.1_git20210424-r2)
(7/7) Installing nodejs (14.21.3-r0)
Executing busybox-1.33.1-r6.trigger
Executing ca-certificates-20230506-r0.trigger
OK: 47 MiB in 21 packages
Mark-Smiths-iPod:~# node -v
v14.21.3
```

Installing npm appears to work:

```
apk add npm
(1/1) Installing npm (7.17.0-r0)
Executing busybox-1.33.1-r6.trigger
OK: 61 MiB in 22 packages
Mark-Smiths-iPod:~# which npm
/usr/bin/npm
Mark-Smiths-iPod:~# npm --version
7.17.0
```

But npm always just hangs:

```
Mark-Smiths-iPod:~# npm install -g http-server
^C
```

Has anyone gotten nodejs and npm running? Is it even possible?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported setup with `apk add nodejs`, `apk add npm`, and `npm install -g http-server`, then investigate why npm hangs in iSH. No source file or test is named, so first identify the relevant package or networking entry point. Done means explaining the failure and establishing a verified supported path or documenting that it is unsupported.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.