Reputation:
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.
Upvotes: 2
Views: 1967
Reputation: 1026
They use express myapp --view=pug
in their tutorial here. This way you'll end up with up-to-date software packages.
Upvotes: 0
Reputation: 33
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
Upvotes: 1