最近在做一个ambari扩展的项目,用到了brunch来build前端code,在安装完brunch,以及安装完package.json里面的所有依赖后, 仍然出现了这样的错误,有人碰到过吗? error如下:
[root[@compute000](/user/compute000) ambari-web]# brunch watch --server
/usr/local/lib/node_modules/brunch/lib/watch.js:446
throw new Error("You probably need to execute `npm install` to insta
^
Error: You probably need to execute `npm install` to install brunch plugins. SyntaxError: /root/wangxu/ambari/ambari-web/node_modules/ember-precompiler-brunch/node_modules/jsdom/lib/jsdom/level1/core.js:418
set nodeName() { throw new core.DOMException();},
^
Unexpected token )
at /usr/local/lib/node_modules/brunch/lib/watch.js:446:17
at Array.map (native)
at loadDeps (/usr/local/lib/node_modules/brunch/lib/watch.js:431:8)
at loadPackages (/usr/local/lib/node_modules/brunch/lib/watch.js:451:13)
at /usr/local/lib/node_modules/brunch/lib/watch.js:471:17
at /usr/local/lib/node_modules/brunch/lib/helpers.js:597:12
at /usr/local/lib/node_modules/brunch/lib/helpers.js:558:16
at /usr/local/lib/node_modules/brunch/lib/helpers.js:507:12
at /usr/local/lib/node_modules/brunch/node_modules/read-components/index.js:263:16
at /usr/local/lib/node_modules/brunch/node_modules/read-components/index.js:72:14
at FSReqWrap.cb [as oncomplete] (fs.js:226:19)