首页 > 解决方案 > 我无法移动或导航到 vscode 终端 powershell 中的文件

问题描述

我已经创建了一个文件夹名称notes并且我的终端当前存在于 notes文件夹中,我正试图在一个名为web.js的文件中进一步移动,所以我使用了命令cd web/这似乎不起作用并且总是抛出错误我也试过 *cd ./web/ , cd .\web* ,没有工作不知道为什么?谁能帮我吗?我需要在我的web.js文件中打开 npm 但无法这样做......请帮助:)!这是错误:

Devlopment\Notes\web\' because it does not exist.
At line:1 char:1
+ cd web/
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:  
   \Web Devlopment\Notes\web\:String) [Set-Locat   
  ion], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Micros  
   oft.PowerShell.Commands.SetLocationCommand```

标签: node.jslinuxvisual-studiocmdterminal

解决方案


如果您需要运行 web.js,您可以使用

node web.js

cd 仅适用于文件夹。您可以 cd 进入笔记,但 web.js 是一个可以通过脚本运行的文件。


推荐阅读