node.js - 我无法移动或导航到 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```
解决方案
如果您需要运行 web.js,您可以使用
node web.js
cd 仅适用于文件夹。您可以 cd 进入笔记,但 web.js 是一个可以通过脚本运行的文件。
推荐阅读
- asp.net-core - 我有具有此示例结构和数据的 sql server 分层数据表:
- javascript - 单击 td 时转换为下拉框并将更改保存到数据库
- go - lambda处理程序回复后如何等待goroutine完成
- angular - 如何调试使用 ng build --prod 构建时生成的错误?
- python - 减少锯齿状边缘并输出完美字母
- php - Laravel 按计数返回 UserTitle
- javascript - 将 OAuth id 令牌从 html 页面传递到 servlet
- excel - 大型机数据提取
- dns - 如果适配器上有很多 IP 地址,为什么“DNSServiceRegisterRecord”不返回引用?
- php - Composer、Windows Server 和臭名昭著的“SSL 操作失败,代码 1”错误