BenHerbst / Dalaix

Easy installer for Dalai: LLaMA on your local machine
https://www.benherbst.net/
Apache License 2.0
66 stars 5 forks source link

Install fails TypeError: Cannot assign to read only property cflags of objective #<object> #3

Closed ozzymuppet closed 1 year ago

ozzymuppet commented 1 year ago

Hello. I hope this helps you debug, and thank you for the efforts. I get the same error when I try your regular commandline installer too.


C:\Dalai>cd C:\Dalai\dalai && PowerShell -Command "Add-Type -AssemblyName PresentationFramework;[System.Windows.MessageBox]::Show('Starting Dalai server ...', 'Dalaix by Ben Herbst')" && npx dalai serve OK gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#' gyp ERR! stack at createConfigFile (C:\Users\XXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:118:21) gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:77:11) gyp ERR! System Windows_NT 10.0.19044 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\XXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\XXX\AppData\Roaming\npm-cache_npx\40384\node_modules\dalai\node_modules\node-pty gyp ERR! node -v v19.8.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! This is a bug in node-gyp. gyp ERR! Try to update node-gyp and file an Issue if it does not help: gyp ERR! https://github.com/nodejs/node-gyp/issues npm ERR! code ELIFECYCLE npm ERR! errno 7 npm ERR! node-pty@0.10.1 install: node scripts/install.js npm ERR! Exit status 7 npm ERR! npm ERR! Failed at the node-pty@0.10.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\XXX\AppData\Roaming\npm-cache_logs\2023-04-01T08_27_01_277Z-debug.log Install for [ 'dalai@latest' ] failed with code 7

C:\Dalai\dalai>

ozzymuppet commented 1 year ago

Oh it works! Followed instructions here, related to node-gyp install error. https://github.com/microsoft/node-pty/issues/439

Flushing and reinstalling that, then re-ran your install, and viola! Thank you.