使用 node.js 安装高速公路
Installing autobahn with node.js
我是 nodejs 的新手,正在寻找 运行 Ubuntu 16.04 上的一些简单代码。
我已经安装了nodejs和npm
root@coding:~# node -v
v6.3.0
root@coding:~# npm -v
3.10.3
我现在正在按照以下方式安装高速公路:
http://autobahn.ws/js/gettingstarted.html
不幸的是我得到:
root@coding:~# npm install autobahn
> bufferutil@1.2.1 install /root/node_modules/bufferutil
> node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/root/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
COPY Release/bufferutil.node
make: Leaving directory '/root/node_modules/bufferutil/build'
> utf-8-validate@1.2.1 install /root/node_modules/utf-8-validate
> node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/root/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: Leaving directory '/root/node_modules/utf-8-validate/build'
/root
└─┬ autobahn@0.10.1
├─┬ bufferutil@1.2.1
│ ├── bindings@1.2.1
│ └── nan@2.4.0
├── crypto-js@3.1.6
├─┬ msgpack-lite@0.1.20
│ ├── event-lite@0.1.1
│ ├── ieee754@1.1.6
│ ├── int64-buffer@0.1.9
│ └── isarray@1.0.0
├── utf-8-validate@1.2.1
├── when@3.7.7
└─┬ ws@1.1.1
├── options@0.0.6
└── ultron@1.0.2
npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
npm WARN root No description
npm WARN root No repository field.
npm WARN root No README data
npm WARN root No license field.
警告-1:
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
原因: 您的 npm 或高速公路的依赖项之一正在使用已弃用的库或函数,在本例中为 NVM_NODEJS_ORG_MIRROR
。如果您的 npm 已经是最新的,请不要担心 autobahn
的人会修复它。如果您觉得有问题,请向他们提出问题。
警告-2:
npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
npm WARN root No description
npm WARN root No repository field.
npm WARN root No README data
npm WARN root No license field.
原因: 您没有 package.json。只需 运行 npm init
并按照说明进行操作,它就会为您创建一个。
结论:
无论哪种方式都是警告。检查您的 node_modules\
文件夹,很可能一切都应该安装,因为没有列出任何错误。
我是 nodejs 的新手,正在寻找 运行 Ubuntu 16.04 上的一些简单代码。
我已经安装了nodejs和npm
root@coding:~# node -v
v6.3.0
root@coding:~# npm -v
3.10.3
我现在正在按照以下方式安装高速公路: http://autobahn.ws/js/gettingstarted.html
不幸的是我得到:
root@coding:~# npm install autobahn
> bufferutil@1.2.1 install /root/node_modules/bufferutil
> node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/root/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
COPY Release/bufferutil.node
make: Leaving directory '/root/node_modules/bufferutil/build'
> utf-8-validate@1.2.1 install /root/node_modules/utf-8-validate
> node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/root/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: Leaving directory '/root/node_modules/utf-8-validate/build'
/root
└─┬ autobahn@0.10.1
├─┬ bufferutil@1.2.1
│ ├── bindings@1.2.1
│ └── nan@2.4.0
├── crypto-js@3.1.6
├─┬ msgpack-lite@0.1.20
│ ├── event-lite@0.1.1
│ ├── ieee754@1.1.6
│ ├── int64-buffer@0.1.9
│ └── isarray@1.0.0
├── utf-8-validate@1.2.1
├── when@3.7.7
└─┬ ws@1.1.1
├── options@0.0.6
└── ultron@1.0.2
npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
npm WARN root No description
npm WARN root No repository field.
npm WARN root No README data
npm WARN root No license field.
警告-1:
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
原因: 您的 npm 或高速公路的依赖项之一正在使用已弃用的库或函数,在本例中为 NVM_NODEJS_ORG_MIRROR
。如果您的 npm 已经是最新的,请不要担心 autobahn
的人会修复它。如果您觉得有问题,请向他们提出问题。
警告-2:
npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
npm WARN root No description
npm WARN root No repository field.
npm WARN root No README data
npm WARN root No license field.
原因: 您没有 package.json。只需 运行 npm init
并按照说明进行操作,它就会为您创建一个。
结论:
无论哪种方式都是警告。检查您的 node_modules\
文件夹,很可能一切都应该安装,因为没有列出任何错误。