Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 无法安装tensorflow.js@tensorflow/tfjs节点_Node.js_Tensorflow_Node Modules - Fatal编程技术网

Node.js 无法安装tensorflow.js@tensorflow/tfjs节点

Node.js 无法安装tensorflow.js@tensorflow/tfjs节点,node.js,tensorflow,node-modules,Node.js,Tensorflow,Node Modules,我无法在本地机器上安装项目中的tensorflow.js模块库。它将问题描述如下: Building TensorFlow Node.js bindings C:\mlwithjs\tensorflowjs\node_modules\@tensorflow\tfjs-node\scripts\install.js:176 throw new Error('node-gyp rebuild failed with: ' + err); ^ Error: node-gyp

我无法在本地机器上安装项目中的tensorflow.js模块库。它将问题描述如下:

Building TensorFlow Node.js bindings
C:\mlwithjs\tensorflowjs\node_modules\@tensorflow\tfjs-node\scripts\install.js:176
      throw new Error('node-gyp rebuild failed with: ' + err);
      ^

Error: node-gyp rebuild failed with: Error: Command failed: node-gyp rebuild
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\mlwithjs\tensorflowjs\node_modules\@tensorflow\tfjs-node
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

    at cp.exec (C:\mlwithjs\tensorflowjs\node_modules\@tensorflow\tfjs-node\scripts\install.js:176:13)
    at ChildProcess.exithandler (child_process.js:301:5)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
npm WARN rollback Rolling back @types/seedrandom@2.4.27 failed (this is probably harmless): EPERM: operation not permitted, rmdir 'C:\mlwithjs\tensorflowjs\node_modules\@types'
npm WARN rollback Rolling back @types/webgl2@0.0.4 failed (this is probably harmless): EPERM: operation not permitted, rmdir 'C:\mlwithjs\tensorflowjs\node_modules\@types'npm WARN tensorflowjs@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @tensorflow/tfjs-node@0.2.1 install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @tensorflow/tfjs-node@0.2.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\Saqib\AppData\Roaming\npm-cache\_logs\2019-01-03T15_18_04_741Z-debug.log
我尝试了一个命令
npm install-g build tools
。尽管它正在安装其他模块


我正在使用
npm install@tensorflow/tfjs node
命令安装它,但它没有帮助。我在谷歌上搜索了一下,但什么也没找到。

欢迎来到Stackoverflow。请参考谢谢@stijn。。。很抱歉给您带来不便。。。。。你能帮我解决这个问题吗。。。因为我没有按照标准要求。。。。。我不知道你是什么意思。也许你能帮上忙?