Open timofeysie opened 5 days ago
I'm not sure which command should come first, but pnpm run generate:env:local
results in the exact same error.
Shell scripts will not work in Windows command prompt. Baseline only works on Windows when using the Windows Subsystem for Linux (for now). I would recommend trying it out
https://learn.microsoft.com/en-us/windows/wsl/install https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-vscode
Thanks for that @thomas-nixon-baseline.
Since installing WSL creates a blank slate OS, I thought I would include notes here on installing all the development tools needed as per the Baseline docs in case it can help others.
sudo apt-get install git
$ git --version
git version 2.34.1
sudo apt-get install curl build-essential libssl-dev
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
nvm install 20
nvm use 20
node --version
v20.15.0
pnpm -v
9.4.0
sudo apt install default-jre
java -version
openjdk version "11.0.23" 2024-04-16
OpenJDK Runtime Environment (build 11.0.23+9-post-Ubuntu-1ubuntu122.04.1)
OpenJDK 64-Bit Server VM (build 11.0.23+9-post-Ubuntu-1ubuntu122.04.1, mixed mode, sharing)
sudo apt-get install jq
sudo apt-get install awscli
aws --version
aws-cli/1.22.34 Python/3.10.12 Linux/5.15.146.1-microsoft-standard-WSL2 botocore/1.23.34
After all this, I see a different error now when trying to setup my AWS profile:
$ pnpm run aws:profile
> @baselinejs/core@0.0.9 aws:profile /mnt/c/Users/timof/repos/timo/kogs
> ./scripts/setup-aws-profile.sh
/usr/bin/env: ‘bash\r’: No such file or directory
ELIFECYCLE Command failed.
WARN Local package.json exists, but node_modules missing, did you mean to install?
$ npm i
npm notice
npm notice New minor version of npm available! 10.7.0 -> 10.8.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
npm notice To update run: npm install -g npm@10.8.1
npm notice
npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type "workspace:": workspace:1.0.0
After getting everything setup with AWS and running in the cloud, I am looking at the docs to run the app locally.
The first step is to setup AWS credentials profile. However the command fails:
I am on Windows 11 with the following versions:
This happens in a Windows prompt, as well as in the VSCode bash shell command prompt.
I supposed that error was coming from this line in the scripts\setup-aws-profile.sh:
However, updating that to try some variations doesn't fix the issue, and even removing that file doesn't help.