安装错误pty.js?
Error pty.js install?
我在尝试使用 node:
安装 pty.js 时遇到了一个不寻常的问题 运行
如果我 运行 npm install pty.js 我收到这个错误:
> pty.js@0.3.1 install
/Users/username/WebstormProjects/example/node_modules/pty.js
> node-gyp rebuild
CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../src/unix/pty.cc:20:
In file included from ../node_modules/nan/nan.h:190:
../node_modules/nan/nan_maybe_43_inl.h:88:15: error: no member named 'ForceSet' in 'v8::Object'
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
~~~ ^
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h:816:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback()
^
我看了post"Errors installing pty.js (node) on OS X"但是他没有帮我解决问题
你需要删除符号 ^ package.json
"ajv": "6.0.0",
"ajv-keywords": "3.2.0"
节点 js 中的这个错误 ^10
(nuxt.js 个项目)
该包不再维护,因此不支持最后一个节点(more info)
使用 node@8
或迁移到 node-pty
(在撰写本文时,node@12
仅受 node-pty@beta
支持)
我在尝试使用 node:
安装 pty.js 时遇到了一个不寻常的问题 运行如果我 运行 npm install pty.js 我收到这个错误:
> pty.js@0.3.1 install
/Users/username/WebstormProjects/example/node_modules/pty.js
> node-gyp rebuild
CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../src/unix/pty.cc:20:
In file included from ../node_modules/nan/nan.h:190:
../node_modules/nan/nan_maybe_43_inl.h:88:15: error: no member named 'ForceSet' in 'v8::Object'
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
~~~ ^
In file included from ../src/unix/pty.cc:20:
../node_modules/nan/nan.h:816:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback()
^
我看了post"Errors installing pty.js (node) on OS X"但是他没有帮我解决问题
你需要删除符号 ^ package.json
"ajv": "6.0.0",
"ajv-keywords": "3.2.0"
节点 js 中的这个错误 ^10 (nuxt.js 个项目)
该包不再维护,因此不支持最后一个节点(more info)
使用 node@8
或迁移到 node-pty
(在撰写本文时,node@12
仅受 node-pty@beta
支持)