dalai
dalai copied to clipboard
On Mac OS, I got this error
Hi There,
On my Mac OS, the npx dalai command was returning nothing:
bash-3.2$ npx dalai alpaca install 7B
bash-3.2$ npx dalai llama install 7B
bash-3.2$ npx dalai serve
bash-3.2$ npx dalai
bash-3.2$ npx dalai --verbose
then I saw this error:
bash-3.2$ node bin/cli.js serve
node:internal/modules/cjs/loader:1051
throw err;
^
Error: Cannot find module 'yargs/yargs'
Fixed it locally by running
npm init
npm i yargs --save
Hopefully it helps others.