2
respostas

Erro no PowerShell

Olá, no PowerShell está dando esse erro. Alguém poderia me ajudar?

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Users\rhais> node -v v18.9.1 PS C:\Users\rhais> cdC:\Alura\java_scr\meuPrimeiroPrograma.jscdC:\Alura\java_scr\meuPrimeiroPrograma.js\ : The term 'cdC:\Alura\java_scr\meuPrimeiroPrograma.js' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • cdC:\Alura\java_scr\meuPrimeiroPrograma.js\
  • ~
    • CategoryInfo : ObjectNotFound: (cdC:\Alura\java...iroPrograma.js:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\rhais>

2 respostas

Fala Rhaisa! tudo bem ?

Você digitou o comando cd junto com o caminho assim: cdC:\Alura\java_scr\meuPrimeiroPrograma.js\

O certo é separar o cd do caminho que passou, assim: cd C:\Alura\java_scr\meuPrimeiroPrograma.js\

Atenciosamente, Matheus.

Rhaisa na esqueça de colocar aspas dupla no caminho da pasta. e coloque ls depois enter e pronto

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software