Invalid rule result: Instance of class Promise

前端 未结 12 1834
野趣味
野趣味 2021-01-17 13:55

I work with Angular 7.1.4. I want to generate a new module with the following line;

ng g m order-process

But I encountered an error:

<         


        
12条回答
  •  -上瘾入骨i
    2021-01-17 14:28

    My problem was that my node version was on 8.x.x but angular >= 8.x.x requires a node version >= 10.x.x

    Im using nvm to change node version. Install it with like so (check link for windows usage)

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
    

    after installation install node version 10.x.x

    nvm install 10
    

    then switch in terminal like this

    nvm use 10
    

提交回复
热议问题