多个错误NPM运行安装-g角-CLI命令
问题描述:
我有多个错误时升运行命令NPM上窗户安装-g角-CLI 上午10 64位时。看看我的日志多个错误NPM运行安装-g角-CLI命令
npm ERR! git clone --template=C:\Users\ben\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror [email protected]:webpack/compression-webpack-plugin.git C:\Users\ben\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: undefined
npm ERR! git clone --template=C:\Users\ben\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror [email protected]:webpack/compression-webpack-plugin.git C:\Users\ben\AppData\Roaming\npm-cache\_git-remotes\git-github-com-webpack-compression-webpack-plugin-git-7e55907cd54a2e91b96d25a660acc6a2a6453f54-e286d0b5: undefined
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "angular-cli"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ENOGIT
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\ben\npm-debug.log
答
您需要在计算机上安装Git。所以,请按照以下步骤仔细检查一切。它可以帮助你:已经安装了Git的
,你需要添加 “C:\ Program Files文件\的Git \ cmd” 并“C:\ Program Files文件\的Git \块”(安装路径)到系统路径。(点击开始菜单=>编辑系统环境变量)
重新打开命令窗口(重要的一步)
012在cmd窗口
运行路径命令,你应该看到的Git路径
安装Cli时> NPM安装-g角CLI
+0
我已经尝试了所有安装GIT并将其设置在系统路径中,但仍然无法正常工作。 – Bento
你的日志说'请检查你是否安装了git并且在你的PATH中。你呢? – blindstuff
Git已安装,并在我的路径,仍然无法正常工作。从angular-cli网站git不是先决条件,我认为git的compression-webpack-plugin.git存在一个错误。 – Bento
这是您第一次安装angular-cli还是安装了早期版本? – Brocco