aurelia-bundler gulp.js can't be found
aurelia-bundler gulp.js can't be found
这是我的gulpfile的内容.js:
var gulp = require('gulp');
var bundler = require('aurelia-bundler');
var config = {
force: true,
packagePath: '.',
bundles: {
"dist/app-build": {
includes: [
'Main.js',
],
excludes:[
"gulpfile.js",
],
options: {
inject: true,
minify: true
}
},
"dist/aurelia": {
includes: [
'aurelia-bootstrapper',
'aurelia-fetch-client',
'aurelia-router',
'aurelia-animator-css',
'github:aurelia/templating-binding',
'github:aurelia/templating-resources',
'github:aurelia/templating-router',
'github:aurelia/loader-default',
'github:aurelia/history-browser',
'github:aurelia/logging-console'
],
options: {
inject: true,
minify: true
}
}
}
};
gulp.task('bundle', function() {
console.log("ok");
return bundler.bundle(config);
});
当我运行gulp捆绑包时,发生以下错误:
[08:08:54] "捆绑包"在 536 毫秒后出错 [08:08:54] 提取 时出错 咕噜.js在 file:///C:/myapp/gulp.js 正在加载gulpfile.js 错误: ENOENT: 没有这样的文件或目录,请打开"C:''myapp''gulp.js" 错误(本机)
我想知道他为什么要在项目的根目录中搜索gulp.js而不是在node_modules文件夹中?
这个文件做的第一件事是尝试要求"gulp" - 你先做了一个npm install
吗?
最后我通过删除node_modules文件夹并再次运行 npm install 解决了问题
相关文章:
- Requirejs main.js could not be found
- JavaScript文件在IIS上返回404 Not Found
- 可以对不属于't writive be shadowed
- react-css-module module not found
- Yii:TbCollapse 多链接(href = #collapse 并将状态更新为 be=“1”)
- express.JS .push cousing array to be undefined
- aurelia-bundler gulp.js can't be found
- grails3 jquery not found
- GeckoFX JSContext not found C#
- 我必须在 JS 中创建这种格式的数据.{ x: 1, y: 1, name: 'BE'},.
- Javascript:一个项目数组的sum-all-found.data()
- "未定义不是函数“;在.to Be功能
- Marionette: childViewContainer was not found
- .found('.foo').text()作为数组
- window.found(文本)用于Flash部分
- Js not found spring mvc
- Ajax POST MyUrl 404 (Not Found)
- 节点webkit中的Require('jquery ui')产生navigator not found错
- xmlhttp.send() returns 404 Not Found (Ajax)
- bundle.js cannot be found