我正处于ember.js教程这一部分的最后一步。 https://guides.emberjs.com/v2.14.0/tutorial/installing-addons/
在添加ember-cli-mirage
插件后尝试运行ember服务器时收到此错误。
steven@steven-VirtualBox:~/em-test$ ember s
Could not start watchman
Visit https://ember-cli.com/user-guide/#watchman for more info.
Livereload server on http://localhost:49153
'instrument' is imported from external module 'ember-data/-debug' but never used
The Broccoli Plugin: [BroccoliMergeTrees: Addon#treeFor (ember-cli-mirage - addon)] failed with:
SyntaxError: Unexpected end of input
at Object.parse (native)
at /home/steven/em-test/node_modules/broccoli-persistent-filter/lib/strategies/persistent.js:35:23
at tryCatch (/home/steven/em-test/node_modules/rsvp/dist/rsvp.js:525:12)
at invokeCallback (/home/steven/em-test/node_modules/rsvp/dist/rsvp.js:538:13)
at /home/steven/em-test/node_modules/rsvp/dist/rsvp.js:606:14
at flush (/home/steven/em-test/node_modules/rsvp/dist/rsvp.js:2415:5)
at nextTickCallbackWith0Args (node.js:436:9)
at process._tickCallback (node.js:365:13)
解析此堆栈的任何帮助?目前还不确定这是做什么的,只是试着通过教程。
答案 0 :(得分:1)
不看你的代码就很难帮助你,但这里有一个线索: SyntaxError:意外的输入结束 检查您是否错过了结束标记或简单的内容。