私は自分のgruntfileを作成し、私が望む様々なタスクを追加する方法について学習しました。これまでのところすべてうまくいっていますが、ライブ再読み込み機能をgrunt-contrib-watchに追加していくつかの問題に取り掛かりました。Grunt livereload致命的なエラー:listen EACCES
私のlocalhostがとてもドキュメントを通じてhttps://github.com/gruntjs/grunt-contrib-watch#optionslivereload
を読んだ後、私は、これは理にかなって考え出しポート9080を聴いていますか?
module.exports = function(grunt) {
require('jit-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: ';'
},
dist: {
src: ['*.js', 'scripts/**/*.js'],
dest: 'dist/<%= pkg.name %>.js'
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
},
dist: {
files: {
'dist/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>']
}
}
},
jshint: {
files: ['gruntfile.js', '*.js', 'scripts/**/*.js'],
options: {
// options here to override JSHint defaults
globals: {
jQuery: true,
console: true,
module: true,
document: true
}
}
},
less: {
development: {
options: {
compress: true,
yuicompress: true,
optimization: 2
},
files: {
"css/main.css": "less/*.less" // destination file and source file
}
}
},
watch: {
files: ['<%= jshint.files %>', 'less/**/*.less', '*.html', 'templates/**/*.html', 'data/**/*.json'],
tasks: ['jshint', 'less'],
options: {
livereload: {
host: 'localhost',
port: 9080
}
}
},
});
grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'less', 'watch']);
};
は私が
は... タスク ウェイティング "を見て" 実行...私は時計の設定をリロードを保存しようとするたびに、このエラーを取得しています致命的なエラー:listen EACCES 127.0.0.1:9080
これについての光?
おかげ
あなたはエラーの完全なログを投稿することができますか? 'EACCESS'はあまり行くことはありません。 – Joseph
それはエラー全体です、私は何も省略していません – pragmatic84