Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/397.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
Javascript 当我尝试使用npm安装brain.js时,我遇到了这个错误_Javascript_Node.js_Npm_Brain.js - Fatal编程技术网

Javascript 当我尝试使用npm安装brain.js时,我遇到了这个错误

Javascript 当我尝试使用npm安装brain.js时,我遇到了这个错误,javascript,node.js,npm,brain.js,Javascript,Node.js,Npm,Brain.js,当我尝试使用npm install brain.js安装brain.js 以下是错误: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! gl@4.4.0 install: `prebuild-install || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the gl@4.4.0 install script. npm ERR! Thi

当我尝试使用
npm install brain.js安装brain.js

以下是错误:

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! gl@4.4.0 install: `prebuild-install || node-gyp rebuild`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the gl@4.4.0 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

我通过重新安装node.js解决了这个问题,一些包出现了问题,当我重新安装时,问题就解决了。感谢所有试图回答我问题的人:)

我通过重新安装node.js解决了这个问题。一些软件包出现了问题,当我重新安装时,问题就解决了。感谢所有试图回答我问题的人:)

您使用的是什么版本的node?我建议尝试使用
npm install brain.js--loglevel verbose
查看日志中的更多信息。你有没有使用过公司代理?谢谢您使用的是哪个版本的node?我建议尝试使用
npm install brain.js--loglevel verbose
,以便在日志中查看更多信息。你有没有使用过公司代理?谢谢