获得“npm ERR!代码ENOVERSIONS“关于新项目

时间:2018-01-06 19:37:39

标签: angularjs node.js npm git-bash

每当我为任何有角度的新项目着陆时,我都会收到此错误。

N'

例如: -

npm ERR! code ENOVERSIONS
npm ERR! No valid versions available for timed-out

到目前为止我尝试了什么

我尝试使用

更新npm
     ng new training-app
    installing ng2
      create .editorconfig
      create README.md
      create src\app\app.component.css
      create src\app\app.component.html
      create src\app\app.component.spec.ts
      create src\app\app.component.ts
      create src\app\app.module.ts
      create src\assets\.gitkeep
      create src\environments\environment.prod.ts
      create src\environments\environment.ts
      create src\favicon.ico
      create src\index.html
      create src\main.ts
      create src\polyfills.ts
      create src\styles.css
      create src\test.ts
      create src\tsconfig.json
      create angular-cli.json
      create e2e\app.e2e-spec.ts
      create e2e\app.po.ts
      create e2e\tsconfig.json
      create .gitignore
      create karma.conf.js
      create package.json
      create protractor.conf.js
      create tslint.json
    Successfully initialized git.
    Installing packages for tooling via npm.
    npm WARN deprecated angular-cli@1.0.0-beta.28.3: angular-cli has been renamed to @angular/cli. Please update your dependencies.
    npm WARN deprecated gulp-util@3.0.7: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
    npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
    npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
    npm ERR! code ENOVERSIONS
    npm ERR! No valid versions available for timed-out

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\Yaso\AppData\Roaming\npm-cache\_logs\2018-01-06T19_29_46_895Z-debug.log

    Package install failed, see above.

但仍然没有遇到同样的问题,同样issues on git

0 个答案:

没有答案