Невозможно найти локальный хрюк при использовании Grung NGTemPlates

StackOverflow https://stackoverflow.com//questions/20000340

  •  20-12-2019
  •  | 
  •  

Вопрос

После инструкции для настройки хрунтных угловых шаблонов: https://npmjs.org/package/Грунт-угловые шаблоны

Я устанавливаю хрунт-угловой шаблон, делая:

npm install grunt-angular-templates --save-dev
.

Это устанавливает.

Моя package.json просто очень просто:

{
  "name": "grunt_example2",
  "version": "0.0.0",
  "description": "",
  "main": "index.js",
  "dependencies": {
    "grunt-angular-templates": "~0.4.7"
  },
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "BSD-2-Clause"
}
.

и я создаю gruntfile.js, как

module.exports = function(grunt) {
  grunt.loadTasks('grunt-angular-templates');
}
.

Когда я делаю:

grunt ngtemplates
.

Я получаю: Фатальная ошибка: невозможно найти локальный ворчание.

If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:

http://gruntjs.com/getting-started
.

Но это ничего не дает мне, как решить это.

Есть подсказки?

спасибо.

Это было полезно?

Решение

Вам нужно установить Grunt в свой проект.Смотрите здесь: http://gruntjs.com/getting-started#installing-grund-and-gruntplugins

npm install grunt --save-dev

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top