我正在进行一个基于的项目
https://github.com/superhighfives/charliegleason.com
一切都很顺利,现在我在尝试使用gulp-build构建项目时遇到了问题。。。
术语错误的img链接:https://i.stack.imgur.com/YU4oc.png
错误:1at formatError(/usr/local/lib/node_modules/gulp/bin/gulp.js:169:10)
Gulp。(/usr/local/lib/node_modules/gulp/bin/gulp.js:195:15)
在Gulp.mit(events.js:107:17)
在Gulp.Orchestrator_emitTaskDone(/Users/qvoiriot/Documents/qvoirio.github.io/node_modules/Gulp/node_modules/corchestrator/index.js:264:8)在/Users/qvoirio/Documents/qvoirio.github.io/node_modules/gulp/node_modules/corchestrator/index.js:275:23
结束时(/Users/qvoirio/Documents/qvoirio.github.io/node_modules/gulp/node_modules/corchestrator/lib/runTask.js:21:8)
在ChildProcess.cb(/Users/qvoirio/Documents/qvoirio.github.io/node_modules/gulp/node_modules/corchestrator/lib/runTask.js:29:3)
在ChildProcess.emit(events.js:129:20)
在maybeClose(child_process.js:1015:16)
在Socket。(child_process.js:11183:11)
在Socket.eemit(events.js:107:17)
在Pipe.close(net.js:485:12)
构建过程与您在下面的链接中看到的过程相同。对于构建部分:
gulp.task('build', function (done) {
cp.exec('harp compile . dist', {stdio: 'inherit'})
.on('close', done)
});
如果有人知道我能解决这个问题的方法???
谢谢,
Q
安装nvm后,我在Gulp/Harp设置中遇到了同样的错误。我通过在全球重新安装Harp.js来修复它。
npm install -g harp