Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run dev fails with connect ECONNREFUSED 127.0.0.1:4001 #5

Open
pippaine opened this issue Feb 2, 2025 · 0 comments
Open

npm run dev fails with connect ECONNREFUSED 127.0.0.1:4001 #5

pippaine opened this issue Feb 2, 2025 · 0 comments

Comments

@pippaine
Copy link

pippaine commented Feb 2, 2025

$ npx create-tina-app@latest --template tina-astro-starter

(node:612348) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✔ Which package manager would you like to use? › npm
✔ What is your project named? … my-tina-app
[INFO] Downloading files from repo tinacms/tina-astro-starter.
[INFO] Installing packages.
npm warn deprecated [email protected]: This package is deprecated. Use the optional chaining (?.) operator instead.
npm warn deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm warn deprecated @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
npm warn deprecated [email protected]: react-beautiful-dnd is now deprecated. Context and options: https://github.com/atlassian/react-beautiful-dnd/issues/2672

added 1585 packages, and audited 1586 packages in 31s

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

8 vulnerabilities (7 high, 1 critical)

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
[INFO] Initializing git repository.
[WARNING] There is no .gitignore file in this repository, creating one...
[INFO] Initialized git repository.
[SUCCESS] Starter successfully created!

To launch your app, run:

cd my-tina-app
npm run dev

Next steps:
    • 📝 Edit some content on http://localhost:3000 (See https://tina.io/docs/using-tina-editor)
    • 📖 Learn the basics: https://tina.io/docs/schema/
    • 🖌️ Extend Tina with custom field components: https://tina.io/docs/advanced/extending-tina/
    • 🚀 Deploy to Production: https://tina.io/docs/tina-cloud/

$ cd my-tina-app/ && npm run dev

> [email protected] dev
> tinacms dev -c "astro dev"

Starting Tina Dev Server
(node:613092) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Indexing local files ⠋
│
○  Tina Dev Server is running... ──────────────────────────────────────────╮
│                                                                          │
│  🦙 Tina Config                                                          │
│     CMS:                <your-dev-server-url>/admin/index.html           │
│     API playground:     <your-dev-server-url>/admin/index.html#/graphql  │
│     API url:            http://localhost:4001/graphql                    │
│                                                                          │
│  🤖 Auto-generated files                                                 │
│     GraphQL Client:     tina/__generated__/client.ts                     │
│     Typescript Types:   tina/__generated__/types.ts                      │
│                                                                          │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
Starting subprocess: astro dev
10:34:47 [types] Generated 1ms
10:34:47 [content] Syncing content
fetch failed
  Location:
    /home/basileus/Projects/_sites/my-tina-app/node_modules/tinacms/dist/client.mjs:90:15
  Stack trace:
    at node:internal/deps/undici/undici:13392:13
    at async requestFromServer (file:///home/basileus/Projects/_sites/my-tina-app/node_modules/tinacms/dist/client.mjs:90:15)
    at async requester (/home/basileus/Projects/_sites/my-tina-app/tina/__generated__/types.ts:262:18)
    at async simpleLoader (file:///home/basileus/Projects/_sites/my-tina-app/node_modules/astro/dist/content/content-layer.js:269:22)
    at async #doSync (file:///home/basileus/Projects/_sites/my-tina-app/node_modules/astro/dist/content/content-layer.js:176:5)
  Caused by:
  connect ECONNREFUSED 127.0.0.1:4001
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1610:16)

$ npx envinfo --system --npmPackages

  System:
    OS: Linux 6.12 Fedora Linux 41 (KDE Plasma)
    CPU: (16) x64 AMD Ryzen 7 5800X3D 8-Core Processor
    Memory: 4.51 GB / 31.23 GB
    Container: Yes
    Shell: 3.7.0 - /usr/bin/fish
  Binaries:
    Node: 22.11.0 - /usr/bin/node
    npm: 11.1.0 - ~/.local/share/node/bin/npm
  npmPackages:
    @astrojs/mdx: ^4.0.5 => 4.0.8
    @astrojs/react: ^4.1.3 => 4.2.0
    @astrojs/rss: ^4.0.11 => 4.0.11
    @astrojs/sitemap: ^3.2.1 => 3.2.1
    @tanstack/react-virtual: ^3.11.2 => 3.11.3
    @tinacms/cli: ^1.8.0 => 1.8.2
    @types/node: ^22.10.5 => 22.13.0
    astro: ^5.1.5 => 5.2.3
    react: ^18.3.1 => 18.3.1
    react-dom: ^18.3.1 => 18.3.1
    react-icons: ^5.4.0 => 5.4.0
    tinacms: ^2.6.0 => 2.6.2

$ sudo lsof -i :4001

$ sudo firewall-cmd --add-port=4001/tcp
Warning: ALREADY_ENABLED: '4001:tcp' already in 'FedoraWorkstation'
success

$ sudo firewall-cmd --list-ports
1025-65535/tcp 1025-65535/udp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant