【问题标题】:getting error on installing `@angular/cli` on mac system在 mac 系统上安装“@angular/cli”时出错
【发布时间】:2018-01-08 10:14:26
【问题描述】:

我正在尝试将angular5 或更高版本安装到我的 mac 机器上。但是遇到错误如何解决?这是错误的详细信息:

03:56:57 {master} ~/arif/ng/mean-angular5$ node -v
v6.11.1
03:57:00 {master} ~/arif/ng/mean-angular5$ clear

03:57:35 {master} ~/arif/ng/mean-angular5$ npm install -g  @angular/cli
npm ERR! Darwin 16.6.0
npm ERR! argv "/Users/jinugeorge/Downloads/node-v6.11.1-darwin-x64/bin/node" "/Users/jinugeorge/Downloads/node-v6.11.1-darwin-x64/bin/npm" "install" "-g" "@angular/cli"
npm ERR! node v6.11.1
npm ERR! npm  v3.10.10
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: require-from-string@^1.1.0
npm ERR! notarget Valid install targets:
npm ERR! notarget 2.0.2
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of 'cosmiconfig'
npm ERR! notarget 

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jinugeorge/arif/ng/mean-angular5/npm-debug.log
03:58:05 {master} ~/arif/ng/mean-angular5$ 

【问题讨论】:

  • @rijin - 已经完成了。在我得到这个问题之后

标签: angular command-line-interface angular-cli


【解决方案1】:

npm 在过去几天遇到了一个问题: https://status.npmjs.org/incidents/41zfb8qpvrdj

不幸的是,对于某些用户来说,这个问题似乎仍然是个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-23
    • 2017-02-15
    • 2017-12-02
    • 2020-01-23
    • 1970-01-01
    相关资源
    最近更新 更多