4 ms·
- npx create-next-app@latest - npx: command not found - install node / npx - npx create-next-app@latest - realise your node is too old - install nvm / node
by zepolen 3y ago
- npx create-next-app@latest
- npx: command not found
- install node / npx
- npx create-next-app@latest
- realise your node is too old
- install nvm / node
- npx create-next-app@latest
- answer a bunch of questions
- npm start
- get an error: Error: ENOENT: no such file or directory, open '/tmp/my-app/.next/BUILD_ID'
- npm run dev
- hello world in browser
- mavamaarten 3y agoThis is why web development (and python, don't get me started on the pain that is python) is not for me.
- satvikpendem 3y agoWhat do you code in? For any language if you don't have the toolchain set up, obviously it'll seem laborious to install it, it's not a knock on the framework used on top of the toolchain.
- bombolo 3y agoBut python is already installed on most linux systems
- satvikpendem 3y agoWhich Python, 2 or 3? How will you handle local versus global dependencies? Will you use pip, conda, virtualenv or something else? How will you package up the code and/or executable? It's not as simple as shipping code to the user.
- bombolo 3y ago[dead]
- mavamaarten 3y agoJava/Kotlin. You define where to get the dependencies in a simple script, you define the version of the build tools, a wrapper script fetches the build tools (gradle) for you and that's it. Everything is neatly cached system-wide where possible and on a project-level otherwise. No conflicts, no shenanigans.
- satvikpendem 3y agoYou still had to set that toolchain up, which is my point.
- lioeters 3y agoDon't forget, Next.js has telemetry by default unless you run: npx next telemetry disable Or set environment variable: NEXT_TELEMETRY_DISABLED=1
- rtcoms 3y agonpm is biggest hurdle for me to learn nodejs. For me it has never worked in first attempt. On other hand Ruby on Rails bundler very rarely game me errors, and for every error provided hints what to do.
- pier25 3y agoThe issue in the above example is not NPM, it's Next.
- satvikpendem 3y agoIf you don't have the toolchain set up, it's not like it's different for any other language.
- zepolen 3y ago- echo "hello world" > /tmp/index.html - browse to file:///tmp/index.html
- satvikpendem 3y agoecho - command not found (maybe you're on Windows) browse - no browser installed edit - no editor found See, I can do the same thing. In any case you need a toolchain installed to actually program in the language you want to program, even if that toolchain is minimal. Complaining about a toolchain not being installed for the thing you want to do is not very useful.
- zepolen 3y agoThere is always a text editor and browser available on any OS, yes even on Windows.
- satvikpendem 3y ago> In any case you need a toolchain installed to actually program in the language you want to program, even if that toolchain is minimal Yes, as I said.
- M4v3R 3y ago> - install node / npx > - npx create-next-app@latest > - realise your node is too old Said no one ever. I can fully understand you not having Node installed (although having any kind of toolchain installed is a prerequisite for any programming so that's a weak argument against Node). But please don't tell me that somehow you will get an old version of Node after you just installed Node, because this is just reaching now. > - npm start > - get an error: Error: ENOENT: no such file or directory, open '/tmp/my-app/.next/BUILD_ID' The README that gets generated with the project literally spells out the correct command you should use to run the project during development (which is not `npm start`), so this argument is also pretty weak.