除了内置命令,cmd.exe无法运行任何命令

时间:2020-06-08 10:54:18

标签: cmd environment-variables command-line-interface

1。例如,当我运行“ expo start”时,它将显示以下消息:

'intern'est pas reconnuant que commande interne 您可以执行程序的外部命令

2。我的系统变量设置为以下内容:

  • 路径:C:\ Windows \ system32; C:\ Windows; C:\ Windows \ System32 \ Wbem; C:/用户/ Microk / AppData /漫游/ npm; C:\ Programmes \ Nodejs; C:\ Programmes \ Git;
  • pathtext:.COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS; .JSE; .WSF; .WSH; .MSC
  • windir:C:\ Windows

3。我的用户变量设置为以下内容:

  • 路径:c:\ windows \ system32; c:\ windows; c:\ windows \ system32 \ wbem; c:/用户/ Microk / AppData /漫游/ npm; C:\ Programmes \ nodejs; C:\ Programmes \ Git;
  • pathtext:.COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS; .JSE; .WSF; .WSH; .MSC
  • windir:C:\ Windows

1 个答案:

答案 0 :(得分:0)

解决方案是将我的环境变量设置为以下变量:

1。用户变量:

  • 路径:C:\ Windows \ system32; C:\ Windows; C:\ Windows \ System32 \ Wbem; C:\ Windows \ system32 \ WindowsPowerShell \ v1.0 \ Modules; C:\ Programmes \ Nodejs \ node。 js; C:\ Programmes \ Git; C:\ Windows \ System32; C:Wwindows; C:\ Windows \ System32 \ wbem; C:\ Users \ Microk \ AppData \ Roaming \ npm; C:\ Users \ Microk \ AppData \ Roaming \ npm \ node_modules \ expo-cli \ bin; C:\ Programmes \ Git; C:\ Program Files \ nodejs
  • PATHEXT:%PATHEXT%;. RB; .RBW
  • node:C:\ Programmes \ nodejs \ node.js
  • NODE_PATH:C:\ Users \ Microk \ AppData \ Roaming \ npm \ node_modules

2。系统变量:

  • 路径:C:\ Windows \ system32; C:\ Windows; C:\ Windows \ System32 \ Wbem; C:\ Windows \ system32 \ WindowsPowerShell \ v1.0 \ Modules; C:\ Programmes \ Nodejs \ node。 js; C:\ Programmes \ Git;