简体   繁体   English

节点js命令不起作用

[英]Node js commands don't work

The other day I could type commands on Node command prompt just fine then commands stopped, I dont know what happened or what I had changed. 前几天,我可以在Node命令提示符下键入命令,然后命令停止,我不知道发生了什么或更改了什么。 So today I tried and I still get the below message 所以今天我尝试了,但仍然收到以下消息

The system cannot find the path specified.

I reinstalled Node and still same problem. 我重新安装了Node,仍然是同样的问题。 I cannot change directory when I run 运行时无法更改目录

cd ~

or 要么

ls

but I can check node version just fine. 但是我可以检查节点版本。

node -v

newbie 新手

The stated commands are for linux/unix the Windows equivalent are as follows 所述命令适用于linux / unix,Windows等效命令如下

cd ~     use   cd /

and

ls       use   dir

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM