Angular 无法从8开始

Angular 无法从8开始,angular,angular-cli,Angular,Angular Cli,我是新来的。在这里,我试图在Angular 8中创建一个新的web应用程序,但出现以下错误: .....................etc............ CREATE my-dream/e2e/protractor.conf.js (810 bytes) CREATE my-dream/e2e/tsconfig.json (214 bytes) CREATE my-dream/e2e/src/app.e2e-spec.ts (637 byt

我是新来的。在这里,我试图在Angular 8中创建一个新的web应用程序,但出现以下错误:

   .....................etc............
     CREATE my-dream/e2e/protractor.conf.js (810 bytes)
      CREATE my-dream/e2e/tsconfig.json (214 bytes)
       CREATE my-dream/e2e/src/app.e2e-spec.ts (637 bytes)
      CREATE my-dream/e2e/src/app.po.ts (251 bytes)
npm ERR! cb() never called!
    npm ERR! cb() never called!
    npm ERR! This is an error with npm itself. Please report this error at:
    npm ERR!     <https://npm.community>
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\AppData\Roaming\npm-cache\_logs\2019-08-12T09_30_50_474Z-debug.log
    Package install failed, see above.

I also installed npm`s latest version and started cmd using these commands:

```
npm install -g @angular/cli
ng new my-dream-app
cd my-dream-app 
```
………..等。。。。。。。。。。。。
创建我的梦想/e2e/dragrator.conf.js(810字节)
创建我的梦想/e2e/tsconfig.json(214字节)
创建我的梦想/e2e/src/app.e2e-spec.ts(637字节)
创建我的梦想/e2e/src/app.po.ts(251字节)
npm错误!我从没打过电话!
npm错误!我从没打过电话!
npm错误!这是npm本身的一个错误。请通过以下地址报告此错误:
npm错误!
npm错误!此运行的完整日志可在以下位置找到:
npm错误!C:\Users\AppData\Roaming\npm cache\\ u logs\2019-08-12T09\u 30\u 50\u 474Z-debug.log
软件包安装失败,请参阅上文。
我还安装了npm的最新版本,并使用以下命令启动了cmd:
```
npm安装-g@angular/cli
ng新的我的梦想应用程序
cd我的梦想应用程序
```

确保安装了最新的NodeJ

步骤1:运行
npm安装-g npm


步骤2:运行
npm缓存清理

C:\Users\AppData\Roaming\npm-cache\u logs\2019-08-12T09\u 30\u 50\u 474Z-debug.log


删除此项并运行cmd ng serve--open

中的命令首先,尝试更新您的“npm”版本,然后尝试“ng new appName”您的nodejs和npm版本是什么?@Jota.Toledo 6.10.3尝试安装nodejs LTS版本和最新npm版本,然后运行commandsTry安装最新的node版本