Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs Nodejs-NPM无法安装Angular CLI_Angularjs_Node.js_Command Line Interface - Fatal编程技术网

Angularjs Nodejs-NPM无法安装Angular CLI

Angularjs Nodejs-NPM无法安装Angular CLI,angularjs,node.js,command-line-interface,Angularjs,Node.js,Command Line Interface,我想在Windows(win7和win 10)上安装Angular 2 CLI。我首先尝试使用节点7.3.0(“Node-v7.3.0-x64.msi”),然后还尝试了“Node-v6.9.2-x64.msi”。我循序渐进地做到了: 打开CMD以管理员身份运行 遍历到“C:\program files\nodejs”目录 已执行“npm安装-g”-cli@latest" 我得到以下警告: npm WARN deprecated minimatch@2.0.10: Please update

我想在Windows(win7和win 10)上安装Angular 2 CLI。我首先尝试使用节点7.3.0(“Node-v7.3.0-x64.msi”),然后还尝试了“Node-v6.9.2-x64.msi”。我循序渐进地做到了:

  • 打开CMD以管理员身份运行
  • 遍历到“C:\program files\nodejs”目录
  • 已执行“npm安装-g”-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"})

分享您尝试使用Angular 2 CLI时会发生什么?分享您尝试使用Angular 2 CLI时会发生什么?