0

我首先开始一个新项目

brunch new https://github.com/wordofchristian/brunch-with-hampsters

然后我尝试启动手表和服务器

$brunch w -s

我收到这个错误

node_modules/emblem-brunch/lib/index.js:27
        this.window.run(fs.readFileSync(paths.jquery, 'utf8'));

TypeError: Object object has no method 'run'
at EmblemCompiler.module.exports.EmblemCompiler.setup (node_modules/emblem-brunch/lib/index.js:27:21)
at new EmblemCompiler (node_modules/emblem-brunch/lib/index.js:43:14)

我不知道如何解决这个错误?

4

1 回答 1

0

我和我的高级程序员一起解决了这个问题。

事实证明我没有在我的 ubuntu 上安装 build-essential 软件包。它正在寻找 g++ 命令。

同样,当我进行 npm 安装时,它需要 sudo。在 g++ 修复和 sudo npm install 之后,我能够启动

brunch w -s
于 2013-08-20T20:55:08.337 回答