Node.js Nodejs成员预编译抛出类型错误
对于我的emberjs应用程序,我希望预编译我的把手模板,但从终端运行Nodejs ember预编译模块:Node.js Nodejs成员预编译抛出类型错误,node.js,ember.js,precompile,Node.js,Ember.js,Precompile,对于我的emberjs应用程序,我希望预编译我的把手模板,但从终端运行Nodejs ember预编译模块: ember-precompile src/templates/*.handlebars -f public/js/templates.js 抛出此TypeError错误: node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Obj
ember-precompile src/templates/*.handlebars -f public/js/templates.js
抛出此TypeError错误:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object #<Object> has no method 'appendFileSync'
at write (/usr/local/lib/node_modules/ember-precompile/bin/ember-precompile:25:10)
at /usr/local/lib/node_modules/ember-precompile/bin/ember-precompile:32:5
at Array.forEach (native)
at main (/usr/local/lib/node_modules/ember-precompile/bin/ember-precompile:31:14)
at Object.<anonymous> (/usr/local/lib/node_modules/ember-precompile/bin/ember-precompile:36:1)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)
是什么原因导致:TypeError:Object没有“appendFileSync”方法?当我尝试将Handlebar更新到最新版本时,我也遇到了同样的问题 我执行了以下步骤 步骤1:将节点服务器更新为最新版本。 步骤2:重新启动系统。 这对我有用