我正在try 为Exokit安装必要的依赖项,但遇到了一个与Python语法错误有关的错误.

这是为了一个新的东西,我想try 在浏览器中加入虚拟现实.我已经从他们的github重新打开了存储库,直接从他们的网站下载.我按照给T的指示go 做(只有4个lol).

I have not yet touched the code and this is the error that I am getting.

Austin@DESKTOP-UD2R1O4 MINGW64 ~/exokit (master)
$ npm install

> raw-buffer@0.0.19 install C:\Users\Austin\exokit\node_modules\raw-buffer
> node-gyp rebuild


C:\Users\Austin\exokit\node_modules\raw-buffer>if not defined 
npm_config_node_gyp (node "C:\Program 
Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp- 
bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node 
"C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\Austin\Anaconda3\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:276:12)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:915:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
gyp ERR! System Windows_NT 10.0.17134
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:\Users\Austin\exokit\node_modules\raw-buffer
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! raw-buffer@0.0.19 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the raw-buffer@0.0.19 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\Austin\AppData\Roaming\npm-cache\_logs\2019-01-06T06_55_37_752Z-debug.log

推荐答案

在cmd administrator(如果cmd冻结,请在Windows Powershell administrator)中try 此操作

npm安装--全局windows构建工具

Node.js相关问答推荐

如何修复PayPal Node.js Webhook中Webhook签名验证失败?''

为什么我的表单数据在我的POST请求中作为应用程序/json发送,为什么它返回错误请求错误?

如何在Mongoose中调用动态Collection ?

Playwright - 无法在 img 标签中使用 file:// 访问本地文件

Nestjs swc 错误:找不到模块项目路径/src/app.module

在 NodeJS 中使用 post 时出现错误 500TypeError: 无法解构 'req.body' 的属性 'name',因为它未定义

Axios TypeError:将循环 struct 转换为 JSON

未授权使用联合身份未授权用户角色从 Amplify graphQL 访问类型 Y 上的 X

Docker node_modules 文件夹上的 React 应用程序不可用

错误:无法检测到网络(event="noNetwork",code=NETWORK_ERROR,version=providers/5.6.8)

node_modules 中 .bin 文件夹的用途是什么?

与 NPM 一起安装时找不到 Express 模块

Connect/Express 中的session和cookieSession中间件有什么区别?

如何可靠地散列 JavaScript 对象?

如何在客户端使用 node.js 模块系统

如何监控 node.js 上的网络,类似于 chrome/firefox 开发者工具?

npm package.json 操作系统特定脚本

node.js 中存储的模块变量在什么范围内?

node --experimental-modules,请求的模块不提供名为的导出

CORS 错误:预检响应中的 Access-Control-Allow-Headers 不允许请求标头字段授权