有人用过brunch 来build前端code吗?
发布于 9 年前 作者 wangxuq 6470 次浏览 最后一次编辑是 8 年前 来自 问答

最近在做一个ambari扩展的项目,用到了brunch来build前端code,在安装完brunch,以及安装完package.json里面的所有依赖后, 仍然出现了这样的错误,有人碰到过吗? error如下: <pre><code> [root@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) </code></pre>

2 回复

mark,还没接触过 brunch http://brunch.io/ 能取代grunt,gulp的,值得看看 - 四千多星了。

好的,谢谢。

回到顶部