前缀-g'不被识别为内部或外部命令-在角度安装过程中出现问题 [英] prefix -g' is not recognized as an internal or external command - issue on during angular installation

查看:40
本文介绍了前缀-g'不被识别为内部或外部命令-在角度安装过程中出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft Windows [版本10.0.16299.309](c)2017 Microsoft Corporation.保留所有权利.

Microsoft Windows [Version 10.0.16299.309] (c) 2017 Microsoft Corporation. All rights reserved.

C:\ Users \ Futluz> cd桌面/angular-cli-master/angular-cli-master

C:\Users\Futluz>cd desktop/angular-cli-master/angular-cli-master

C:\ Users \ Futluz \ Desktop \ angular-cli-master \ angular-cli-master> npm install -g @ angular/cli

C:\Users\Futluz\Desktop\angular-cli-master\angular-cli-master>npm install -g @angular/cli

呼叫"C:\ Program Files \ nodejs \ node.exe""C:\ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js"前缀-g'不被识别为内部或外部命令,可操作的程序或批处理文件.

推荐答案

主要问题环境变量中缺少某些文件路径"

Main problem "some file path is missing in environment variables "

如果您遇到这样的问题,您只需重置Windows设置

If you have an issue like this , you simply reset the windows settings

转到控制面板->更新&安全->恢复设置->仅删除我的文件

之后,您就可以安装所需的任何软件:)

After that you have install whatever software you need :)

这篇关于前缀-g'不被识别为内部或外部命令-在角度安装过程中出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆