Maison  >  Questions et réponses  >  le corps du texte

angular.js - 在终端中用yeoman启用angular-generator报错,求解?

最近在学习前端自动化的一些工具,在网上找了一个教程跟着一步步做,
前面需要安装的npm,grunt,bower,yeoman,都已经正确安装了,

在终端执行yo angular mytodo后一步步yes后,就出错,文件夹里也只多一个npm-debug.log文件,其他应该生成的文件都没有。

报错信息如下:

ps:也试过直接 npm install -g generator-angular,还是报错。

给我你的怀抱给我你的怀抱2688 Il y a quelques jours497

répondre à tous(2)je répondrai

  • 巴扎黑

    巴扎黑2017-05-15 16:58:40

    Cela devrait être un problème d'autorisations. Essayez de remplacer le propriétaire de votre répertoire de projet par vous-même. Le propriétaire généré par l'outil n'est peut-être pas vous.
    Si cela ne fonctionne toujours pas, soyez brutal et chmod 777 -R le répertoire du projet.

    répondre
    0
  • 黄舟

    黄舟2017-05-15 16:58:40

    Essayez sudo xxx. .

    répondre
    0
  • Annulerrépondre