What should I do for deprecated npm modules for express generator?

1.8k Views Asked by At
express website

npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Deprecated, use jstransformer

(I am just following a tutorial.) Will installing jstransformer and pug be not enough? Am I supposed to edit code of express? Can I use something like this for production?

I don't understand how deprecation work and what I can do about it.

2

There are 2 best solutions below

0
Matt White On

Express Generator just sets up some boiler plate code for you. You are not committed to any of modules that it uses. Since you are following along in a tutorial, I would recommend you not do anything about the deprecated packages. you may run into some problems otherwise following along with your tutorial...and get frustrated because you are using a different setup from the author.

Going forward, and for these particular packages, you will want to remove the deprecated packages first, example: npm uninstall jade Then install the correct one, npm install pug --save

1
Alexandr Zarubkin On

They use express myapp --view=pug in their tutorial here. This way you'll end up with up-to-date software packages.