当我进入 $ 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 :(得分:2)
这是因为您安装了节点版本0.10而不是节点0.8。
目前,流星使用节点0.8。
删除节点0.10并安装节点0.8将解决您的错误