C
C#13mo ago
Dredd

Student - Can't run program frontend

Hi everyone, For my study I need to run a small game and find, report and write an essay about the bugs. I'm not really a programmer of any kind, I am better at writing the reports than getting a program to work. I got the backend to work but not the frontend. To setup the frontend I got this as explenation: - Run "npm install" inside the folder "frontend" and after that run "npm run serve" To execute the tests: - Run "npm run tests" It's probably very easy to do, but I don't understand it. (I got a newer MacBook without an intel chip and got the backend to work in rider)
17 Replies
alex
alex13mo ago
you open a terminal and navigate into that directory and run those commands
Dredd
DreddOP13mo ago
How do I run the commands can I just paste them or do I need a dot or simething else like: .npm install Because I tried those 2 things but nothing happend
Dredd
DreddOP13mo ago
No description
alex
alex13mo ago
just type them in a terminal and press enter
Dredd
DreddOP13mo ago
No description
Thinker
Thinker13mo ago
Do you have npm installed?
Dredd
DreddOP13mo ago
I think I might not have done that
Thinker
Thinker13mo ago
If it says command not found: npm then you very likely don't Is that in a regular terminal?
Dredd
DreddOP13mo ago
No description
Dredd
DreddOP13mo ago
I also tried to open the frontend in visiual studio code because a classmate of mine recommended it.
No description
Dredd
DreddOP13mo ago
Is it easy to install npm?
Thinker
Thinker13mo ago
Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Dredd
DreddOP13mo ago
Thank you! now it works
Dredd
DreddOP13mo ago
I often find it difficult to ask for help, but I can't get this to work as well. If I try and run "npm run build" I get this error. This the explanation of the assignment: Run "npm run build" to create a production distribution. Use node 16 for this. Switching between different versions of npm can be easily done with nvm. I think I installed nvm, but I don't know how to switch to node 16.
No description
Pobiega
Pobiega13mo ago
That sounds like an issue best solved by nvms documentation, not a C# discord.
Angius
Angius13mo ago
You can, usually, use a -h, --help, or -? flag for a command to display help So, chances are, nvm -h will show you all the things you can do with nvm Among them, should be something that allows you to install a new Node version And one that will let you switch to said version' For example, nvm add 16 and nvm use 16

Did you find this page helpful?