express --view=hbs myapp getting [ERR_INVALID_CALLBACK]: Callback must be a function

1k Views Asked by At

enter image description here- express --view=hbs myapp [node version 12.18.2]

Getting error like this

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function

1

There are 1 best solutions below

0
On

Install express generator as a root sudo npm install -g express-generator