dalai icon indicating copy to clipboard operation
dalai copied to clipboard

Error: Cannot find module \node_modules\dalai\bin\cli.js'

Open Pubjlo opened this issue 1 year ago • 1 comments

Hello

How can I fix it?

C:\Users\pubjl\Desktop\AI>npx dalai alpaca install 7B node:internal/modules/cjs/loader:1078 throw err; ^

Error: Cannot find module 'C:\Users\pubjl\node_modules\dalai\bin\cli.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

Node.js v18.15.0

Thank you

Pubjlo avatar Mar 26 '23 06:03 Pubjlo

yeah , i gert stuck on this aswell :(

ramzeez88 avatar Mar 26 '23 14:03 ramzeez88

same here

JakobM999 avatar Mar 26 '23 18:03 JakobM999

Same :/

DevLvca avatar Mar 27 '23 21:03 DevLvca

I had the same issue

What fixed it was running npm install -g dalai before running the npx command.

Apparently they removed that from the install guide

Edit: I should mention, that brings up another issue when trying to generate a response on the web ui

Lordmau5 avatar Mar 27 '23 23:03 Lordmau5

Make sure you download the complete package and don't interrupt the download until its not finished.

What fixed it was running npm install -g dalai before running the npx command.

@Lordmau5 advice helped me

DevLvca avatar Mar 29 '23 11:03 DevLvca