ollama-js icon indicating copy to clipboard operation
ollama-js copied to clipboard

An error occurred while packing in electron

Open whl1207 opened this issue 1 month ago • 2 comments

The following message is displayed when installing ‘npm i ollama’ and then packing with electron:

• electron-builder version=24.5.2 os=10.0.19045 • loaded configuration file=package.json ("build" field) • description is missed in the package.json appPackageFile=E:\Project\Knowledge\package.json • author is missed in the package.json appPackageFile=E:\Project\Knowledge\package.json • writing effective config file=release\builder-effective-config.yaml • executing @electron/rebuild arch=x64 platform=windows version=25.2.0 appDir=E:\Project\Knowledge Error: Could not find any Python installation to use at PythonFinder.fail (E:\Project\Knowledge\node_modules\node-gyp\lib\find-python.js:330:47) at PythonFinder.runChecks (E:\Project\Knowledge\node_modules\node-gyp\lib\find-python.js:159:21) at PythonFinder. (E:\Project\Knowledge\node_modules\node-gyp\lib\find-python.js:228:18) at PythonFinder.execFileCallback (E:\Project\Knowledge\node_modules\node-gyp\lib\find-python.js:294:16) at exithandler (node:child_process:427:5) at ChildProcess.errorhandler (node:child_process:439:5) at ChildProcess.emit (node:events:513:28) at ChildProcess._handle.onexit (node:internal/child_process:289:12) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

⨯ node-gyp failed to rebuild 'E:\Project\Knowledge\node_modules\canvas' failedTask=build stackTrace=Error: node-gyp failed to rebuild 'E:\Project\Knowledge\node_modules\canvas' at ChildProcess. (E:\Project\Knowledge\node_modules@electron\rebuild\src\module-type\node-gyp\node-gyp.ts:131:16)
at ChildProcess.emit (node:events:513:28) at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)

whl1207 avatar May 02 '24 14:05 whl1207