当我进入
$ 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)
最佳答案
这是因为您安装了节点版本 0.10 而不是节点 0.8。
目前,meteor 使用节点 0.8。
删除节点 0.10 并安装节点 0.8 将解决您的错误
关于bundle - 抛出新的类型错误 ('Arguments to path.join must be strings' );在 meteor ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15726980/