dalai icon indicating copy to clipboard operation
dalai copied to clipboard

On Mac OS, I got this error

Open parolkar opened this issue 1 year ago • 0 comments

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.

parolkar avatar Oct 06 '23 13:10 parolkar