我在使用nodejs和sharejs时遇到了麻烦。我正在尝试使用sharejs,并已通过npm安装。然而,我似乎无法加载它。在我的代码中,我所拥有的全部内容如下:
var client = require('share').client;当我调用node myfile.js时
我得到以下错误。
the variable "exports" can't be assigned with ?= because it has not been defined我是nodejs的初学者,非常感谢大家的帮助和指点。
谢谢
发布于 2012-04-30 00:25:44
或者进行描述为here的小修复
发布于 2012-04-20 20:18:51
尝试安装旧版本:
npm install share@v0.4.1https://stackoverflow.com/questions/10223622
复制相似问题