流星構建的Wekan代碼無法運行在節點0.10.4x, 流星將爲新版本節點創建代碼,如const或lambda表達式。 如何讓Meteor構建可以在節點0.10.4x中運行的代碼?如何查詢舊nodejs的流星構建代碼
錯誤1:
/home/wekan/output/bundle/programs/server/packages/modules.js:33433
const Boom = require(‘boom’);
^^^^^
SyntaxError: Use of const in strict mode.
at /home/wekan/output/bundle/programs/server/boot.js:292:30
at Array.forEach (native)
at Function..each..forEach (/home/wekan/output/bundle/programs/server/node_modules/underscore/underscore.js:79:11)
at /home/wekan/output/bundle/programs/server/boot.js:133:
錯誤2:
/home/wekan/output/bundle/programs/server/packages/modules.js:33571
credentialsFunc(attributes.id, (err, credentials) => {
^Preformatted text
SyntaxError: Unexpected token >
at /home/wekan/output/bundle/programs/server/boot.js:292:30
at Array.forEach (native)
at Function..each..forEach (/home/wekan/output/bundle/programs/server/node_modules/underscore/underscore.js:79:11)
at /home/wekan/output/bundle/programs/server/boot.js:133:5
Wekan只能運行在0.10.4x的node.js中 –
這個wekan:https://github.com/wekan/wekan? – Styx
是的,但我的Wekan是0.10.1,僅適用於節點0.10.4x。當前版本是0.47。 –