W
Wasp-langPierrunoYT

How can I use WASP on Windows?

How can I use WASP on Windows?
K
kapa.ai12d ago
Hi @PierrunoYT. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To use Wasp on Windows, you'll need to use the Windows Subsystem for Linux (WSL). Here are the steps: 1. Install WSL (https://learn.microsoft.com/en-us/windows/wsl/install) on your Windows machine. 2. Set up Ubuntu on WSL. 3. Follow the Linux instructions for installing Wasp. You can refer to this step-by-step guide (https://wasp-lang.dev/blog/2023/11/21/guide-windows-development-wasp-wsl) for using Wasp in a WSL environment. Please note that if you are using WSL2, your Wasp project should not be on the Windows file system, but instead on the Linux file system. Otherwise, Wasp won't be able to detect file changes due to an issue in WSL2 (https://github.com/microsoft/WSL/issues/4739). To install Wasp on Linux / OSX / WSL (Windows), open your terminal and run:
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh
Then, create a new app by running:
wasp new
wasp new
Finally, run the app:
cd <my-project-name>
wasp start
cd <my-project-name>
wasp start
You should now have a new full-stack web app running at <http://localhost:3000.> If you encounter any issues, you can reach out to the Wasp community on Discord (https://discord.gg/rzdnErX) for help. Sources: - Wasp Quick Start Guide (https://wasp-lang.dev/docs/quick-start#installation) - Wasp on Windows Guide (https://wasp-lang.dev/blog/2023/11/21/guide-windows-development-wasp-wsl) - WSL2 Issue (https://github.com/microsoft/WSL/issues/4739) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @PierrunoYT, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
P
PierrunoYT12d ago
M
martinsos12d ago
Ok, our bot did a nice job here :D! Additional question @PierrunoYT : how did you find out about Wasp? We normally have installation instructions for Linux/Mac/Win(WSL), did you miss those? I am asking so we can figure out if we can improve the docs somehow.
F
Filip12d ago
@PierrunoYT As the error message says: Your version of Node is too low. Use nvm to set it to Node 18
P
PierrunoYT12d ago
I found it on Google but it was not really clear how to Install Wasp on Windows. @kapa.ai ❌ --- [Error] Node requirement not met: ------------------------------------------ Your Node version does not meet Wasp's requirements! You are running Node 12.22.9. Wasp requires Node version 18.18.0 or higher.
K
kapa.ai12d ago
Let me check the knowledge base for you. One moment! :books: ---------------------- The error message you're seeing is because your current Node.js version does not meet the minimum version requirement for Wasp. Wasp requires Node.js version 18.18.0 or higher. You can update your Node.js version using Node Version Manager (nvm). Here's how you can do it: 1. If you haven't installed nvm yet, you can install it by following the instructions on the nvm GitHub page (https://github.com/nvm-sh/nvm#installing-and-updating). 2. Once you have nvm installed, you can install a newer version of Node.js by running the following command in your terminal:
nvm install 18
nvm install 18
3. After the installation is complete, you can switch to the new version by running:
nvm use 18
nvm use 18
4. Now, you should be able to run your Wasp project without any issues. If you're still having trouble, feel free to ask for help in the Wasp Discord community (https://discord.com/channels/686873244791210014/1219009534174167101). Sources: - Discord support thread: Older node version still needed? (https://discord.com/channels/686873244791210014/1219009534174167101) - Github Issue (closed): Upgrade Node version requirement to 20 (https://github.com/wasp-lang/wasp/issues/1618) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @PierrunoYT, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
P
PierrunoYT12d ago
@kapa.ai pierre@Pierruno:~$ nvm install 18 Command 'nvm' not found, did you mean: command 'nvim' from snap nvim (v0.9.4) command 'nsm' from snap nift (3.0.3) command 'gvm' from snap gvm (1.1.0) command 'nm' from deb binutils (2.38-4ubuntu2.3) command 'nsm' from deb linuxptp (3.1.1-3) command 'pvm' from deb pvm (3.4.6-3.2) command 'lvm' from deb lvm2 (2.03.11-2.1ubuntu4) command 'nvi' from deb nvi (1.81.6-17) command 'npm' from deb npm (8.5.1~ds-1) command 'num' from deb quickcal (2.4-1) command 'nvme' from deb nvme-cli (1.16-3ubuntu0.1) command 'kvm' from deb qemu-system-x86 (1:6.2+dfsg-2ubuntu6.15) command 'vm' from deb mgetty-voice (1.2.1-1.1) command 'nvim' from deb neovim (0.6.1-3) command 'nam' from deb nam (1.15-5.2) See 'snap info <snapname>' for additional versions. pierre@Pierruno:~$
K
kapa.ai12d ago
Let me check the knowledge base for you. One moment! :books: ---------------------- The error message you're seeing indicates that the nvm (Node Version Manager) command is not found in your system. This means that nvm is not installed or not properly set up. Here are the steps to install nvm: 1. Open your terminal and download the nvm installation script from the project's GitHub page:
curl -o- <https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh> | bash
curl -o- <https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh> | bash
2. The script will clone the nvm repository to ~/.nvm, and add the source lines to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc). 3. To verify that nvm has been installed, you can do:
command -v nvm
command -v nvm
It should output nvm if the installation was successful. 4. Close your terminal and open a new one. Now, you should be able to install a new version of Node.js by running:
nvm install 18
nvm install 18
5. And then switch to the new version with:
nvm use 18
nvm use 18
If you're still having trouble, feel free to ask for help in the Wasp Discord community (https://discord.com/channels/686873244791210014/1219009534174167101). Sources: - nvm GitHub page (https://github.com/nvm-sh/nvm#installing-and-updating) - Discord support thread: Older node version still needed? (https://discord.com/channels/686873244791210014/1219009534174167101) - Github Issue (closed): Upgrade Node version requirement to 20 (https://github.com/wasp-lang/wasp/issues/1618) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @PierrunoYT, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
M
martinsos12d ago
@PierrunoYT just to mention, it seems to me like you are not experience with development -> it will be very hard for you to use Wasp if you don't have much dev experience! It is aimed at developers that have basic understanding of web technologies.
P
PierrunoYT12d ago
Yeah I’m just a normal user who likes playing with AI
R
Ravsall12d ago
after having done all the steps indicated in the various tutorials and I go to do the part ..name app db migrate-dev says command not found, what should I do?
M
martinsos12d ago
Hey @Ravsall ! That is one of the very first steps in most tutorials (although we have only one main tutorial), so you should have encountered this quite soon. What exactly did you type though? name app db migrate-dev wouldn't certainly work! It should be wasp db migrate-dev . The best thing is if you can give more information: which tutorial you followed, what exact steps you did, the exact error message you are getting, what you tried, ... .
R
Ravsall10d ago
@martinsos after installing with (curl...) after wasp new, list number project name comes out I choose 5 ai generated, then I create application on usemage.ai I download it, then I do that part wasp db migrate-dev ..wasp start and it comes out, wasp command failed , Couldn't find wasp project root ...where is the error, where am I wrong?
M
martinsos7d ago
@Ravsall you don't need to do both: so you either do wasp new and then choose 5 (AI) and generate the app that way (and follow instructions), OR you go to usemage.ai and follow instructions there. As for the Couldn't find wasp project root -> exactly what it says, it means you were not positioned in the terminal inside your Wasp project, when running wasp command, so you need to position yourself there.
Want results from more Discord servers?
Add your server
More Posts
Disable google authHow to disable google auth in an existing wasp project that uses google auth?Error when trying to login with google oauthI recently migrated my codebase from 0.12.4 to 0.13.0 and I'm now having issues when I attempt to loPassword Reset token invalidationHey, could it be that a password token can be reused once it is used? Tried it 3 times with the sameMails not being sent (Mailgun and Sendgrid tested => both haven't even got an API request)Hey, I have setup my main.wasp with my email I have registered and set the APIKey - for password resuiWhich ui component library works well with waspRunning the backend as a regular node.js app?Hi, I'm wondering if it's possible to run the backend as a regular node.js application like 'npm staWhere to startIm a UI designer dabbling in trying to create my first app w/ GitHub code pilot as I’m not a developrunning wasp inside google idx errorI am trying to setup the dev environment test out opensaas with google online ide idx, but when I trApp crashed for unknowing reasonHey, I start the app when it's still v-0.12.0, it works fine till today, nothing changed on my end btrying to run wasp.sh server on dockerHey guys, so I tried dockerising wasp-sh after I saw it on your recent reddit post. 1. I created aConfused about [Client ]HMR[Wasp 0.13.0, MacOs] Hey guys, I am trying to update wasp header/nav bar to a new style with framerIssue with deploying my wasp app to fly.ioI'm trying to deploy my wasp app to fly.io, but I'm encountering an error that doesn't make sense. Whas anyone got shadcn to work with wasp? I am trying but keep getting an errorAttached is the error I am currently getting. Just wondering if anyone has had success with it?"wasp start db" takes too much time.Any solution for this? i seem to be stuck in a loop and i can't do "Wasp start" until this resolves.Best Practices for Implementing Auth System in Chrome Extension Connected to OpenSaaSHello, everyone! I'm currently developing a SaaS product and have created a Chrome extension. I'm aCompile / Parse error with the ToDoApHello all , I just downloaded and installed Wasp on Windows 11 with WSL2. The installation wenPossibility to disable wasp reload on UI file changes?Hey my dudes, is it possible to calm down this guy on the screenshot from reloading everything everyWhat's the best way to start with Wasp?I'm looking for the best way to start with learning Wasp.onAuthSucceededRedirectTo previous siteWhen I open a Link in my app where Auth is required but my session expired, I get redirected to the Is there something missing? :(I'm following this guide. https://wasp-lang.dev/blog/2023/11/21/guide-windows-development-wasp-wsl B