Angular grunt build (from yeoman) breaks my app

后端 未结 5 1966
野趣味
野趣味 2021-01-12 09:33

after running the build from the /dist folder I get:

Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.1/$injector/modulerr?p         


        
5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-12 10:01

    if you are using Yeoman for building your angular application.

    Simply type

    yo doctor
    

    This will help you to identify what all issues are present with your application.

    Yeoman Doctor
    Running sanity checks on your system
    
    ✔ Global configuration file is valid
    ✔ NODE_PATH matches the npm root
    ✖ Node.js version
    
    Your Node.js version is outdated.
    Upgrade to the latest version: https://nodejs.org
    
    ✔ No .bowerrc file in home directory
    ✔ No .yo-rc.json file in home directory
    ✔ npm version
    
    Found potential issues on your machine :(
    

提交回复
热议问题