无法加载/nowjs/now.js
当我启动服务器时,出现以下错误
[Error: Unable to load shared library /home/boopathi/node_modules/now/node_modules/node- proxy/lib/node-proxy.node]
Error: Unable to load shared library /home/boopathi/node_modules/now/node_modules/node-proxy/lib/node-proxy.node
at Object..node (module.js:465:11)
at Module.load (module.js:353:31)
at Function._load (module.js:310:12)
at Module.require (module.js:359:17)
at require (module.js:370:17)
at Object.<anonymous> (/home/boopathi/node_modules/now/lib/proxy.js:10:13)
at Module._compile (module.js:434:26)
at Object..js (module.js:452:10)
at Module.load (module.js:353:31)
at Function._load (module.js:310:12)
当我手动创建节点代理模块时,我收到以下警告..
[2/2] cxx_link: build/Release/node-proxy_1.o -> build/Release/node-proxy.node
呈黄色...
现在我无法加载 /nowjs/now.js 文件
我尝试过 --harmony_proxies ..但它没有帮助..
When I start the server, I get the following error
[Error: Unable to load shared library /home/boopathi/node_modules/now/node_modules/node- proxy/lib/node-proxy.node]
Error: Unable to load shared library /home/boopathi/node_modules/now/node_modules/node-proxy/lib/node-proxy.node
at Object..node (module.js:465:11)
at Module.load (module.js:353:31)
at Function._load (module.js:310:12)
at Module.require (module.js:359:17)
at require (module.js:370:17)
at Object.<anonymous> (/home/boopathi/node_modules/now/lib/proxy.js:10:13)
at Module._compile (module.js:434:26)
at Object..js (module.js:452:10)
at Module.load (module.js:353:31)
at Function._load (module.js:310:12)
When I make the node-proxy module manually, I get the following warning..
[2/2] cxx_link: build/Release/node-proxy_1.o -> build/Release/node-proxy.node
in yellow color...
Now I'm not able to load the /nowjs/now.js file
I tried --harmony_proxies .. but it did not help ..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这应该可以帮助您找到答案:
启动
gdb 节点
。输入break node.cc:1624
,然后输入运行 yourscript.js
。当gdb遇到断点时,使用p/a dlerror()来获取错误的地址。它应该打印类似$123 = 0xabcddefg
的内容。现在使用 x/s 0xabcddefg(插入从上一个命令获得的地址)来查看错误。该错误有帮助吗?This should help you find it out:
Fire up
gdb node
. Typebreak node.cc:1624
, then typerun yourscript.js
. When gdb hits the breakpoint, usep/a dlerror()
to obtain the address of the error. It should print something like$123 = 0xabcddefg
. Now usex/s 0xabcddefg
(insert the address you got from the last command) to see the error. Is the error helpful?我在 bcrypt 上遇到了同样的问题,发现这是因为我的节点是 32 位,而 bcrypt 是构建为 64 位的。在我构建了 64 位节点后,一切正常。
I encountered same problem with bcrypt and found it's because my node was 32bit and bcrypt was build as 64bit. After I build a 64bit node, all things work fine.
我尝试过这个解决方案但没有成功。
我猜团队让 NowJS 需要修复所有平台的当前支持。我无法在 Mac 和 Windows 下运行 NowJS。
没有办法实现它。也许一些进一步的版本允许我使用 NowJS,但是现在,我做不到。
I´ve tried this solution without success.
I guess the team made NowJS need to fix it current support in all plataforms. I cannot run NowJS under either Mac and Windows.
There is no way to accomplish it. Maybe some further version allow me to play with NowJS, but NOW, I can´t do it.