在Windows 10桌面上安装Score stored | AssertionError: expected response body to equal '"Score saved"' but got '[{"player":{"number":"s1133824","firstName": goes on
时遇到问题。安装它的确切步骤是什么?
答案 0 :(得分:0)
确保目录中至少有以下内容的package.json
文件:
{ "private": true }
确保已全局安装windows-build-tools
:
npm install -g --production windows-build-tools
这应该给您:
> + windows-build-tools@5.1.0
确保已全局安装node-gyp
:
npm install -g node-gyp
在本地安装tensortflow-node
:
npm install tensort-flow --save-dev
(可选)(建议)为tensorflow安装gpu支持
npm install @tensorflow/tfjs-node-gpu --save-dev
还要查看官方安装说明,网址为:https://github.com/tensorflow/tfjs-node
您也会发现有帮助: