SORU
18 Aralık 2012, Salı


Ölümcül hata: yerel homurtu bulunamadı

Eski homurtu ilk kaldırıldı ve yeni homurdan I yükleyin.Ama bir hata var:

D:\www\grunt-test\grunt
grunt-cli: The grunt command line interface. (v0.1.4)

Fatal error: Unable to find local grunt.

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

Sistem benim yolum, ya da başka bir şey mi bir homurtu sığınak var mı? Birkaç kez tekrar yüklemeyi denedim.

CEVAP
18 Aralık 2012, Salı


Proje dizininizde grunt.js dosyası yok sanırım. jQuery, node,commonjs gibi seçenekler verir grunt:init kullanın. İstediğinizi seçin, devam edin. Bu gerçekten işe yarıyor. Daha fazla bilgi için this ziyaret edebilirsiniz.

Bunu yapmak için:

 1. npm install -g grunt
 2. grunt:init  ( you will get following options ):
      jquery: A jQuery plugin
      node: A Node module
      commonjs: A CommonJS module
      gruntplugin: A Grunt plugin
      gruntfile: A Gruntfile (grunt.js)
 3 .grunt init:jquery (if you want to create a jQuery related project.).

Çalışması gerekir.

V1 için çözüm.4:

1. npm install -g grunt-cli
2. npm init
   fill all details and it will create a package.json file.
3. npm install grunt (for grunt dependencies.)

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • PamtheBlamofficial

    PamtheBlamof

    31 Aralık 2010
  • TitaniumBackup

    TitaniumBack

    10 EYLÜL 2011
  • tutvid

    tutvid

    19 AĞUSTOS 2006