Nodejs - NPM无法安装Angular CLI

时间:2016-12-23 19:10:13

标签: angularjs node.js command-line-interface

我想在Windows上安装Angular 2 CLI(win7& win 10)。我尝试首先使用Node 7.3.0(“node-v7.3.0-x64.msi”),然后尝试使用“node-v6.9.2-x64.msi”。在步骤中,我做了:

  • 以管理员身份打开CMD
  • 遍历“C:\ program files \ nodejs”目录,
  • 执行“npm install -g angular-cli @ latest”

我收到以下警告:

npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\Users\rlin\AppData\Roaming\npm\ng -> C:\Users\rlin\AppData\Roaming\npm\node_modules\angular-cli\bin\ng
C:\Users\rlin\AppData\Roaming\npm
`-- angular-cli@1.0.0-beta.24
  +-- @angular-cli/ast-tools@1.0.11
  | `-- rxjs@5.0.2
  +-- autoprefixer@6.6.0
  | `-- browserslist@1.5.1
  +-- css-loader@0.23.1
  | `-- cssnano@3.9.1
  |   `-- postcss-reduce-initial@1.0.1
  +-- html-webpack-plugin@2.24.1
  | `-- bluebird@3.4.7
  `-- tslint@4.2.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\angular-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

0 个答案:

没有答案