【问题标题】:throw new TypeError('Arguments to path.join must be strings'); in meteorjsthrow new TypeError('arguments to path.join must be strings');在流星
【发布时间】:2013-03-31 06:26:17
【问题描述】:

当我进入 $ PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp node bundle/main.js

打开浏览器

出现这个错误

 path.js:360
        throw new TypeError('Arguments to path.join must be strings');
              ^
TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at exports.join (path.js:358:36)
    at exports.send (/root/webapp/bundle/server/node_modules/connect/lib/middleware/static.js:129:20)
    at pass (/root/webapp/bundle/server/node_modules/gzippo/lib/staticGzip.js:111:4)
    at /root/webapp/bundle/server/node_modules/gzippo/lib/staticGzip.js:180:12
    at Object.oncomplete (fs.js:93:15)

【问题讨论】:

    标签: bundle meteor


    【解决方案1】:

    这是因为您安装的是节点版本 0.10 而不是节点 0.8。

    目前,meteor 使用节点 0.8。

    删除节点 0.10 并安装节点 0.8 将解决您的错误

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-14
      • 2022-12-26
      • 2012-05-15
      • 1970-01-01
      • 2022-07-27
      • 2017-03-19
      • 1970-01-01
      • 2015-07-19
      相关资源
      最近更新 更多