You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition, when installing the npm packages, body-parser dependency is listed as "~1.9.1" in the package.json file. It will cause the npm ERR! invalid: [email protected] warning when you listed your installed npm packages by the command of npm list.
(Personally, I solved this warning by npm update command.)
So instead of "~1.9.1", it should be listed as "~1.13.3" (as the time of this issue writing, the latest body-parser is "1.13.3").
Thanks.
The text was updated successfully, but these errors were encountered:
In Exercise 2 - Book Library application, the usage of
bodyParser()
constructor inserver.js
has been deprecated as of 2014-06-19.app.use(bodyParser()); // deprecated
Instead of this line, it needs to be used as the following code:
In addition, when installing the npm packages, body-parser dependency is listed as
"~1.9.1"
in thepackage.json
file. It will cause the npm ERR! invalid: [email protected] warning when you listed your installed npm packages by the command ofnpm list
.(Personally, I solved this warning by
npm update
command.)So instead of
"~1.9.1"
, it should be listed as"~1.13.3"
(as the time of this issue writing, the latest body-parser is "1.13.3").Thanks.
The text was updated successfully, but these errors were encountered: