我在写一个小游戏,显然是基于套接字的。在本地主机上,一切正常,但当我从专用服务器运行.swf文件,并试图连接到node.js服务器时,连接会被“握手授权”卡住:
info: Server starting...
info - socket.io started
info: Listening on port 4000
info: Server started.
debug - client authorized
info - handshake authorized _kqPhvoD6jYI-c1Gr7zu
仅此而已。
本地SWF文件->本地Node.JS -&
Node Sass could not find a binding for your current environment:
OS X 64-bit with Node.js 4.x
Found bindings for the following environments:
- OS X 64-bit with Node.js 6.x
我明白了。说大也大吧。例外:node -v => v6.9.2
那么,我当前的环境是从哪里获得的呢?我正在使用nvm来管理节点版本。但是我得到了关于我正在运行的node版本的冲突信息。
我也关注了
如何随时随地使用v6.9.2?
我需要在Windows机器上更新nodejs,因为来自create-react-app的错误消息。因此,现在我首先将npm更新到最新版本(6.11.3),然后我想更新节点(npm install node@latest -g),我得到错误npm not support Node.js v7.10.1 那么如何更新Node.js呢?我不想丢失已经安装的模块(包括create-react-app)。我找到了使用nvm的建议,但npm install nvm -g也失败,并显示错误npm not support Node.js v7.10.1
我在我的ubuntu 16.04电脑上安装了nodejs 4.2.6版。我尝试使用命令sudo npm install -g n安装n,但出现以下错误。
Node.js 4 is supported but the specific version you're running has
一个已知会破坏npm的bug。请至少更新到4.7.0才能使用此版本的npm。您可以在上找到最新版本的Node.js
每次安装4.2.6版本时,我都会卸载当前的nodejs,然后重新安装。我不明白为什么没有安装最新版本。我按照此链接重新安装了我的nodejs
是否需要更新其他版本才能拥有最新的nodej
2019-04-04T04:34:49.035Z - error: Error when loading extension Error: The module '/media/vishesh/Disc/working/examples/jsreport_pdf_password_install_tryout/node_modules/jsreport-pdf-password/node_modules/hummus/binding/hummus.node'
was compiled against a different Node.js version using
NODE