-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove tensorflow-tfjs-node cannot install in pnpm
- Loading branch information
Showing
4 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
bin=./node_modules/.bin | ||
cnpm install @tensorflow/tfjs-node | ||
# build es and splite bundle | ||
$bin/vite build -c ./config/build.es.ts | ||
# build umd | ||
# TODO: splite bundle | ||
$bin/vite build -c ./config/build.umd.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
# 查看ip地址 | ||
|
||
`https://tool.chinaz.com/speedtest/storage.googleapis.com` | ||
|
||
storage.googleapis.com 142.251.43.27 | ||
|
||
# Error | ||
|
||
```sh | ||
node_modules/.pnpm/@[email protected]/node_modules/@tensorflow/tfjs-node: Running install script, failed in 201ms | ||
.../node_modules/@tensorflow/tfjs-node install$ node scripts/install.js | ||
│ CPU-darwin-4.17.0.tar.gz | ||
│ * Downloading libtensorflow | ||
│ https://storage.googleapis.com/tf-builds/libtensorflow_r2_7_darwin_arm64_cpu.tar.gz | ||
│ node:events:490 | ||
│ throw er; // Unhandled 'error' event | ||
│ ^ | ||
│ Error: read ECONNRESET | ||
│ at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) | ||
│ Emitted 'error' event on ClientRequest instance at: | ||
│ at TLSSocket.socketErrorListener (node:_http_client:496:9) | ||
│ at TLSSocket.emit (node:events:512:28) | ||
│ at emitErrorNT (node:internal/streams/destroy:151:8) | ||
│ at emitErrorCloseNT (node:internal/streams/destroy:116:3) | ||
│ at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { | ||
│ errno: -54, | ||
│ code: 'ECONNRESET', | ||
│ syscall: 'read' | ||
│ } | ||
│ Node.js v19.6.0 | ||
``` | ||
- slove | ||
```sh | ||
cnpm install @tensorflow/tfjs-node | ||
``` |