Environment:
ObrStack on macOS,
Docker version 24.0.7, build afdd53b.
At the third step, which is "Set up the environment", I ran docker compose run api go install github.com/cosmtrek/air@latest, but it showed an error message as follow:
> docker compose run api go install github.com/cosmtrek/air@latest
[+] Building 0.0s (0/0) docker:orbstack
[+] Building 0.0s (0/0) docker:orbstack
__ _ ___
/ /\ | | | |_)
/_/--\ |_| |_| \_ (devel), built with Go go1.21.3
watching .
watching api
...
...
...
watching web/src/types/utils
watching web/src/utils
building...
running...
Error: unknown command "go" for "memos"
Run 'memos --help' for usage.
panic: unknown command "go" for "memos"
goroutine 1 [running]:
main.main()
/work/main.go:13 +0x38
Also, when running docker compose run web npm install, it prompted:
> docker compose run web npm install
[+] Building 0.0s (0/0) docker:orbstack
[+] Creating 1/0
✔ Container memos-api-1 Running 0.0s
[+] Building 0.0s (0/0) docker:orbstack
npm <command>
Usage:
npm install install all the dependencies in your project
npm install <foo> add the <foo> dependency to your project
npm test run this project's tests
npm run <foo> run the script named <foo>
npm <command> -h quick help on <command>
npm -l display usage info for all commands
npm help <term> search for help on <term>
npm help npm more involved overview
All commands:
access, adduser, audit, bugs, cache, ci, completion,
config, dedupe, deprecate, diff, dist-tag, docs, doctor,
edit, exec, explain, explore, find-dupes, fund, get, help,
help-search, hook, init, install, install-ci-test,
install-test, link, ll, login, logout, ls, org, outdated,
owner, pack, ping, pkg, prefix, profile, prune, publish,
query, rebuild, repo, restart, root, run-script, search,
set, shrinkwrap, star, stars, start, stop, team, test,
token, uninstall, unpublish, unstar, update, version, view,
whoami
Specify configs in the ini-formatted file:
/root/.npmrc
or on the command line via: npm <command> --key=value
More configuration info: npm help config
Configuration fields: npm help 7 config
npm@9.8.1 /usr/local/lib/node_modules/npm
However, it was wired that when running docker compose run web "npm install", the packages were installed correctly.
Environment: ObrStack on macOS, Docker version 24.0.7, build afdd53b.
At the third step, which is "Set up the environment", I ran
docker compose run api go install github.com/cosmtrek/air@latest
, but it showed an error message as follow:Also, when running
docker compose run web npm install
, it prompted:However, it was wired that when running
docker compose run web "npm install"
, the packages were installed correctly.