【问题标题】:I've got an error when running 'ng new angular-src' which 'You cannot use the new command inside an Angular CLI project.'运行“ng new angular-src”时出现错误,“您不能在 Angular CLI 项目中使用新命令。”
【发布时间】:2017-12-04 19:41:50
【问题描述】:

package.json

{     
 "name": "meanauthapp",    
  "version": "1.0.0",      
  "description": "mean stack application",      
  "main": "app.js",      
  "scripts": {    
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node app"
  },    
  "dependencies": {    
    "express": "*",
    "mongoose": "*",
    "bcryptjs": "*",
    "cors": "*",
    "jsonwebtoken": "*",
    "body-parser": "*",
    "passport": "*",
    "passport-jwt": "*"
  },    
  "author": "ip",    
  "license": "ISC",    
  "devDependencies": {    
    "@angular/cli": "^1.5.5"
  }
}

【问题讨论】:

    标签: javascript angular angular-cli


    【解决方案1】:

    我通过从应用程序文件夹中删除“package.json”文件和“node_module”文件夹解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2020-01-03
      • 2021-05-22
      • 2017-03-07
      • 2016-09-10
      • 2019-07-02
      • 2019-03-25
      • 2017-01-01
      • 2017-07-24
      • 1970-01-01
      相关资源
      最近更新 更多