2016-04-03 20 views
0

AWS'de barındırılan Jhipster ile oluşturulmuş bir projem var. İşler gayet iyi çalışıyordu, fakat bilgisayarımı biçimlendirip her şeyi yeniden kurmam gerekiyordu (aynı işletim sistemi - Ubuntu 15.10). Daha sonra nodejs 5.10.0, npm 3.8.3 ve Jhipster 3.0'ı kurdum. Jhipster yüklemek için, ben here açıklanan adımları takip etti, ama paketleri yükleme sudo kullanarak:Jhipster - AWS modülünün kurulması

sudo npm install -g yo 
sudo npm install -g bower 
sudo npm install -g grunt 
sudo npm install -g generator-jhipster 

(Projem aslen Jhipster 2.23 üzerine inşa ve yudum yerine hırıltı kullanır edildi).

Sonra ben adımlar (sudo kullanarak, bir kez daha) aws jeneratör yüklemek için here tarif izledi: /usr/local/lib/node_modules de $sudo npm install aws-sdk progress node-uuid

Benim sistemde, yerine monte küresel düğüm modülleri /usr/lib/node_modules bulunabilir .

Ama o modüllerini yüklemek için komutu çalıştırdığınızda, bir hata mesajı ve generator-jhipster klasör olsun (!) Silindi

benim önceki ortamda yüklü zamanı hatırlıyorum
$cd /usr/lib/node_modules/generator-jhipster 
$sudo npm install aws-sdk progress node-uuid 
[email protected] /usr/lib/node_modules/generator-jhipster 
├── [email protected] extraneous 
├── [email protected] extraneous 
└── [email protected] extraneous 

npm ERR! Linux 4.2.0-34-generic 
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "aws-sdk" "progress" "node-uuid" 
npm ERR! node v5.10.0 
npm ERR! npm v3.8.3 
npm ERR! path /usr/lib/node_modules/generator-jhipster/node_modules/.staging/generator-jhipster-ad396f5f 
npm ERR! code ENOENT 
npm ERR! errno -2 
npm ERR! syscall rename 

npm ERR! enoent ENOENT: no such file or directory, rename '/usr/lib/node_modules/generator-jhipster/node_modules/.staging/generator-jhipster-ad396f5f' -> '/usr/lib/node_modules/generator-jhipster' 
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/lib/node_modules/generator-jhipster/node_modules/.staging/generator-jhipster-ad396f5f' -> '/usr/lib/node_modules/generator-jhipster' 
npm ERR! enoent This is most likely not a problem with npm itself 
npm ERR! enoent and is related to npm not being able to find a file. 
npm ERR! enoent 
npm ERR! Linux 4.2.0-34-generic 
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "aws-sdk" "progress" "node-uuid" 
npm ERR! node v5.10.0 
npm ERR! npm v3.8.3 
npm ERR! path npm-debug.log.2689400133 
npm ERR! code ENOENT 
npm ERR! errno -2 
npm ERR! syscall open 

npm ERR! enoent ENOENT: no such file or directory, open 'npm-debug.log.2689400133' 
npm ERR! enoent ENOENT: no such file or directory, open 'npm-debug.log.2689400133' 
npm ERR! enoent This is most likely not a problem with npm itself 
npm ERR! enoent and is related to npm not being able to find a file. 
npm ERR! enoent 

npm ERR! Please include the following file with any support request: 
npm ERR!  /usr/lib/node_modules/generator-jhipster/npm-debug.log 

, ben de vardı edilir aws modülünü yükleme sorunları, ancak bir çeşit hile kullanarak çalışmayı başardım. Bu sefer hiçbir şey bulamadım.

Ben de, geçmişte (2.23) 'de vardı aynı jhipster sürümünü yükleyerek çalıştı sudo olmadan node_manager klasörüne izinleri değişen ve her şeyi çalıştıran çalıştı, benim ev klasöründe yüklemeden denedim ama hiçbir şey çalıştı. npm install aws-sdk progress node-uuid dosyasını generator-jhipster klasörünün altında çalıştırdığımda, önceki hata yükseltilir ve bu klasör silinir.

Herhangi bir fikrin var mı?

DÜZENLEME: Aşağıdaki @ gaël-marziou'nun ipucu, nvm kullanarak düğümü yeniden yükledim. Bir LTS sürümü olan v4.4.2 düğümünü kurdum. Şimdi her şey ~/.nvm klasörünün altında yüklenir.

~/.nvm/versions/node/v4.4.2/lib/node_modules/generator-jhipster$ npm install aws-sdk progress node-uuid 
[email protected] /home/jodevan/.nvm/versions/node/v4.4.2/lib/node_modules/generator-jhipster 
├── [email protected] extraneous 
├── [email protected] extraneous 
└── [email protected] extraneous 

npm ERR! Linux 4.2.0-34-generic 
npm ERR! argv "/home/jodevan/.nvm/versions/node/v4.4.2/bin/node" "/home/jodevan/.nvm/versions/node/v4.4.2/bin/npm" "install" "aws-sdk" "progress" "node-uuid" 
npm ERR! node v4.4.2 
npm ERR! npm v3.8.5 
npm ERR! path /home/jodevan/.nvm/versions/node/v4.4.2/lib/node_modules/generator-jhipster/node_modules/.staging/generator-jhipster-b76490c0 
npm ERR! code ENOENT 
npm ERR! errno -2 
npm ERR! syscall rename 

npm ERR! enoent ENOENT: no such file or directory, rename '/home/jodevan/.nvm/versions/node/v4.4.2/lib/node_modules/generator-jhipster/node_modules/.staging/generator-jhipster-b76490c0' -> '/home/jodevan/.nvm/versions/node/v4.4.2/lib/node_modules/generator-jhipster' 
npm ERR! enoent ENOENT: no such file or directory, rename '/home/jodevan/.nvm/versions/node/v4.4.2/lib/node_modules/generator-jhipster/node_modules/.staging/generator-jhipster-b76490c0' -> '/home/jodevan/.nvm/versions/node/v4.4.2/lib/node_modules/generator-jhipster' 
npm ERR! enoent This is most likely not a problem with npm itself 
npm ERR! enoent and is related to npm not being able to find a file. 
npm ERR! enoent 
npm ERR! Linux 4.2.0-34-generic 
npm ERR! argv "/home/jodevan/.nvm/versions/node/v4.4.2/bin/node" "/home/jodevan/.nvm/versions/node/v4.4.2/bin/npm" "install" "aws-sdk" "progress" "node-uuid" 
npm ERR! node v4.4.2 
npm ERR! npm v3.8.5 
npm ERR! path npm-debug.log.151200600 
npm ERR! code ENOENT 
npm ERR! errno -2 
npm ERR! syscall open 

npm ERR! enoent ENOENT: no such file or directory, open 'npm-debug.log.151200600' 
npm ERR! enoent ENOENT: no such file or directory, open 'npm-debug.log.151200600' 
npm ERR! enoent This is most likely not a problem with npm itself 
npm ERR! enoent and is related to npm not being able to find a file. 
npm ERR! enoent 

npm ERR! Please include the following file with any support request: 
npm ERR!  /home/jodevan/.nvm/versions/node/v4.4.2/lib/node_modules/generator-jhipster/npm-debug.log 

sayesinde Jodevan: Ben generator-jhipster klasörü altında amy paketini yüklemeye çalıştığımda, aynı sorunu var.

cevap

1

Az yorumlar:

Daha önemli: JHipster 2.x ile 3.0 proje yükseltmeleri desteklemez.

Sen kullanılan aynı sürümünü yüklemelisiniz: npm install -g [email protected]

+0

1. Tuhaf. Hatırladığım kadarıyla, daha önce yaptığım gibi kurdum. Şu adımları kullanarak yükledim: https://github.com/nodesource/distributions#debinstall. 2. ** Hangi düğüm sürümünü önerirsiniz? ** Hem 4.x hem de 5.x denedim. 3. nvm'yi deneyeceğim. BTW, Jhipster'ı yükseltmiyorum. Bilgisayarımı biçimlendirmek zorunda kaldığımdan, sürüm 3.0'ı yüklemeyi bitirdim ama 2.23'e düşürdüm. Tek istediğim projemi AWS'ye dağıtmak için sadece aws modülünü kullanmak. Teşekkürler! – Jodevan

+0

Sadece önerilen değişiklikleri yaptım. Hala hayır şans. Başka fikirlerin var mı? Teşekkürler! – Jodevan

+0

Tamam Sudo düğümü için düzeltildi ve sudo npm için bir bağlantı verdi. Son LTS'yi kullanıyoruz. 4.4.x. Bu bir jhipster sorunu gibi değil, bir çevre sorunu gibi görünmüyor, nvm kullanmıyorsunuz ama bunu izinizde görebiliyorum: npm ERR! argv "/home/jodevan/.nvm/versions/node/v4.4.2/bin/node" "/home/jodevan/.nvm/versions/node/v4.4.2/bin/npm" "yükleme" "aws-sdk "" progress "" node-uuid " –

0

Peki, ben bir kez daha benim sisteminizi yeniden zorunda sona erdi ve bu kez her şey iyi çalıştı. node v.4.4'ü yükledim.4 (LTS) ppa deposunu kullanarak https://nodejs.org/en/download/package-manager'da buldu (bunu daha önceki girişimde de yapmıştım). Ayrıca JHipster (2.23) ve bağımlılıklarını http://jhipster.github.io/installation'da bulunan yönergeleri ve http://jhipster.github.io/aws numaralı adreste listelenen talimatları kullanarak yükledim.

Artık her şey mükemmel çalışıyor. Git şekil ...

+0

Sadece ne olduğunu anladım: Düğümü yüklediğimde npm sürümü 2.x idi. Çalışıyor npm install aws-sdk progress node-uuid bu sürümle çalışıyor. Önceki denememde npm (npm install npm) npm yükseltmiş olsaydım, npm versiyonum 3.9.5 oldu. Çalışıyor npm install aws-sdk progress node-uuid bu npm sürümü ile iyi anlaşılamıyor ve tüm sorunlarım nasıl başladı. – Jodevan