Может ли кто-нибудь помочь мне решить эту проблему? Неустранимая ошибка: невозможно найти локальное ворчание
Я изучаю hybris и начал использовать smartedit. Проблема в том, что когда я бегу
ant clean all
или же
ant updatesystem
Я получаю эту ошибку.
Running grunt default
grunt-cli: The grunt command line interface (v1.3.2)
Fatal error: Unable to find local grunt.
If you're seeing this message, grunt hasn't been installed locally to
your project. For more information about installing and configuring grunt,
please see the Getting Started guide:
https://gruntjs.com/getting-started
Что я сделал до сих пор:
У меня grunt-cli установлен глобально, а grunt установлен локально. Кроме того, я бегу
npm install
.
Вот мой файл packege.json:
{
"name": "name",
"version": "1.0.0",
"main": "index.js",
"directories": {
"lib": "lib"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"grunt": "^1.4.1",
"grunt-contrib-jshint": "^3.0.0",
"grunt-contrib-watch": "^1.1.0"
},
"dependencies": {},
"description": "desc"
}
Вот мой Gruntfile.js:
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'],
options: {
globals: {
jQuery: true
}
}
},
watch: {
files: ['<%= jshint.files %>'],
tasks: ['jshint']
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['jshint']);
};
Я попробовал несколько способов решить эту проблему, но ничего не помогло. Кто-нибудь может мне помочь?