The command is invalid: always run a request to create a project

I have a project for about 4 months and suddenly aurelia command line commands are not working.

When I try to run au run --watch, I get a message with options to create a new project along the way.

I already tried to uninstall and reinstall the CLI aurelia, it does not work.

The last thing I did was run git clean -xdf

I think it could be something in my project. Can anybody help me?

ANSWER

After some attempts, I fixed the problem:

1) I am reinstalling git and Node;

2) I deleted all the files along the way \AppData\Roaming\npm-cache;

3) I checked if git and Node were in PATH environment variables;

4) I ran the command npm install;

+4
1

aurelia-cli devDependencies , ?


:

  • npm i -g aurelia-cli

devDependencies:

  • npm i --save-dev aurelia-cli


au , build run.

, gulp, devDependencies.



EDIT: . aurelia/cli/issues/485, , aurelia-cli .

+3

Source: https://habr.com/ru/post/1667911/


All Articles