Replies: 6 comments
-
Did you install nodejs? |
Beta Was this translation helpful? Give feedback.
-
yes, the react app, in standalone, works just fine |
Beta Was this translation helpful? Give feedback.
-
Did you install nodejs/npm via nvm? If you did then nvm does not add node/npm to the path but instead works by using a script in the bashrc to add the installation to the path on starting your terminal. If this is what is happening to you, you would need to add the binaries to your system path (I believe in |
Beta Was this translation helpful? Give feedback.
-
@jack775544 as a matter of fact, I actually used fnm (alternative to nvm). is this a situation exclusive to linux? I usually use nvm on windows and never had this particular issue |
Beta Was this translation helpful? Give feedback.
-
I've never used fnm before but a quick skim of the readme makes me feel like it would have the same issue. NVM for Windows actually works a bit different to the Macos/Linux version. It creates a symlink in a folder (normally C:\Program Files\nodejs) and adds that folder to the system PATH. When you change versions of node, it will adjust the location that the symlink points to. This means that it doesn't rely on any shell script magic to add node to the path and causes everything to work normally. If you want to test if this hypothesis is correct though, try and start the app host project with |
Beta Was this translation helpful? Give feedback.
-
Appears this is a machine configuration issue, converting to discussion |
Beta Was this translation helpful? Give feedback.
-
Hi! Having this issue on aspire with npm app.
this is my config:
I also tried to create a starter app, creating a new react app and adding a similar config as above:
Screenshot of the dashboard:
I also tried to configure the app via executable and got the same error:
I am not sure if this is a runtime/aspire issue but if I just run the app from the terminal, it works. It only gives this error while running via aspire.
Some extra info:
IDE: Rider
dotnet version:
8.0.401
aspire workload version:
aspire 8.2.0/8.0.100 SDK 8.0.400
ubuntu:
24.04.1 LTS (Noble Numbat)
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions