改完的上下文应该是这样的
console.warn('* Downloading libtensorflow');
console.log(getPlatformLibtensorflowUri());
resources.downloadAndUnpackResource(
`xxx`, depsPath, async () => {
if (platform === 'win32') {
// Some windows libtensorflow zip files are missing structure and the
// eager headers. Check, restructure, and download resources as
// needed.
找到node_modules.pnpm\@tensorflow+tfjs-node@3.21.1_seedrandom@3.0.5\node_modules\@tensorflow\tfjs-node\scripts\install.js 行145改为 `手动下载libtensorflow压缩包的Uri`, depsPath, async () => { 保存,pnpm install
改完的上下文应该是这样的 console.warn('* Downloading libtensorflow'); console.log(getPlatformLibtensorflowUri()); resources.downloadAndUnpackResource( `xxx`, depsPath, async () => { if (platform === 'win32') { // Some windows libtensorflow zip files are missing structure and the // eager headers. Check, restructure, and download resources as // needed.