search

Home  >  Q&A  >  body text

angular.js - When using yeoman to enable angular-generator in the terminal, an error occurs. What is the solution?

I have recently been learning some tools for front-end automation. I found a tutorial on the Internet and followed it step by step.
The npm, grunt, bower, and yeoman that need to be installed previously have all been installed correctly.

After executing yo angular mytodo step by step in the terminal, an error occurred. There is only one more npm-debug.log file in the folder, and there are no other files that should be generated.

The error message is as follows:

ps: I also tried npm install -g generator-angular directly, but still got an error.

给我你的怀抱给我你的怀抱2821 days ago585

reply all(2)I'll reply

  • 巴扎黑

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

    It should be a permissions issue. Try changing the owner of your project directory to yourself. The owner generated by the tool may not be you.
    If that still doesn’t work, be rough and chmod 777 -R the project directory.

    reply
    0
  • 黄舟

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

    Try sudo xxx. .

    reply
    0
  • Cancelreply