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

问题描述 投票:0回答:1

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

'expo'n’est pas reconnuant que commande interneou externe,可执行程序,也可以执行命令]

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。我的用户变量设置为以下内容:

  • Path: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
cmd environment-variables command-line-interface
1个回答
0
投票

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

1。用户变量:

    path: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 \漫游\ 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。系统变量:

    • Path:C:\ Windows \ system32; C:\ Windows; C:\ Windows \ System32 \ Wbem; C:\ Windows \ system32 \ WindowsPowerShell \ v1.0 \ Modules; C:\ Programmes \ Nodejs \ node.js ; C:\ Programmes \ Git;
    © www.soinside.com 2019 - 2024. All rights reserved.