N
Nuxt4w ago
WizZard

Unable to create a nuxt project on Raspberry Pi 4

I have tried to create a nuxt project on my raspberry pi and was unable to do so. OS: Ubuntu Server 24.04 Architecture: aarch64
ℹ Welcome to Nuxt! nuxi 4:09:42 AM
ℹ Creating a new project in nuxt-on-pi4. nuxi 4:09:42 AM

✔ Which package manager would you like to use?
npm
◐ Installing dependencies... nuxi 4:09:45 AM
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead

> postinstall
> nuxt prepare

Illegal instruction (core dumped)
npm error code 132
npm error path /home/pi/codespace/nuxt-on-pi4
npm error command failed
npm error command sh -c nuxt prepare
npm error A complete log of this run can be found in: /home/pi/.npm/_logs/2025-08-09T03_09_45_484Z-debug-0.log

ERROR Error: npm install failed. nuxi 4:11:37 AM

npm error code 1
npm error path /home/pi/codespace
npm error command failed
npm error command sh -c create-nuxt nuxt-on-pi4
npm error A complete log of this run can be found in: /home/pi/.npm/_logs/2025-08-09T03_09_40_578Z-debug-0.log
ℹ Welcome to Nuxt! nuxi 4:09:42 AM
ℹ Creating a new project in nuxt-on-pi4. nuxi 4:09:42 AM

✔ Which package manager would you like to use?
npm
◐ Installing dependencies... nuxi 4:09:45 AM
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead

> postinstall
> nuxt prepare

Illegal instruction (core dumped)
npm error code 132
npm error path /home/pi/codespace/nuxt-on-pi4
npm error command failed
npm error command sh -c nuxt prepare
npm error A complete log of this run can be found in: /home/pi/.npm/_logs/2025-08-09T03_09_45_484Z-debug-0.log

ERROR Error: npm install failed. nuxi 4:11:37 AM

npm error code 1
npm error path /home/pi/codespace
npm error command failed
npm error command sh -c create-nuxt nuxt-on-pi4
npm error A complete log of this run can be found in: /home/pi/.npm/_logs/2025-08-09T03_09_40_578Z-debug-0.log
Error log 1: https://dpaste.org/AW5OZ Error log 2: https://dpaste.org/qxBrD
2 Replies
kapa.ai
kapa.ai4w ago
Hi @WizZard. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry you're experiencing issues creating a Nuxt project on your Raspberry Pi 4 (Ubuntu Server 24.04, aarch64). Based on the error message:
Illegal instruction (core dumped)
npm error code 132
...
npm error command sh -c nuxt prepare
Illegal instruction (core dumped)
npm error code 132
...
npm error command sh -c nuxt prepare
This indicates a low-level failure, likely related to a native binary or incompatibility with your hardware architecture (ARM64/aarch64). From the official Nuxt installation documentation, Nuxt requires Node.js 20.x or newer, and recommends using an even-numbered LTS version. However, there is no explicit mention of support or known issues for ARM64 (aarch64) platforms like the Raspberry Pi 4 in the provided knowledge sources. The documentation does mention that for optimal setup, you should use an even-numbered Node.js version and that WSL can help with Windows performance, but nothing specific to ARM or Raspberry Pi platforms is covered Nuxt 4.x Installation Guide. Additionally, there are no reports or solutions in the knowledge sources regarding "Illegal instruction" errors or successful Nuxt installations on Raspberry Pi or ARM64 Linux. Summary:
The knowledge sources do not contain enough information to provide a definitive solution for running Nuxt on a Raspberry Pi 4 (aarch64). The error you are seeing may be due to incompatibility with native dependencies or binaries that do not support ARM64. You may want to check for ARM64 compatibility of all dependencies, try a different Node.js version (preferably the latest LTS), or search for community discussions outside the provided sources. If you continue to encounter issues, consider opening an issue on the Nuxt GitHub repository with details about your environment and error logs for more targeted help. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai4w ago
<@321370635584536576> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?