W
Wasp9mo ago
PierrunoYT

How can I use WASP on Windows?

How can I use WASP on Windows?
14 Replies
kapa.ai
kapa.ai9mo 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?
martinsos
martinsos9mo 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.
Filip
Filip9mo ago
@PierrunoYT As the error message says: Your version of Node is too low. Use nvm to set it to Node 18
PierrunoYT
PierrunoYTOP9mo 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.
kapa.ai
kapa.ai9mo 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?
PierrunoYT
PierrunoYTOP9mo 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:~$
kapa.ai
kapa.ai9mo 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?
martinsos
martinsos9mo 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.
PierrunoYT
PierrunoYTOP9mo ago
Yeah I’m just a normal user who likes playing with AI
Ravsall
Ravsall9mo 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?
martinsos
martinsos9mo 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, ... .
Ravsall
Ravsall9mo 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?
martinsos
martinsos9mo 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