【问题标题】:While installing body-parser got an error of 404 [closed]安装 body-parser 时出现 404 错误 [关闭]
【发布时间】:2021-08-14 03:21:33
【问题描述】:

我是初学者,在尝试安装 body-parser 包时遇到了这个问题,我应该怎么做才能解决这个问题?

D:\Calculator>npm install body-paeser
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/body-paeser - Not found
npm ERR! 404
npm ERR! 404  'body-paeser@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hp\AppData\Roaming\npm-cache\_logs\2021-08-14T07_18_28_751Z-debug.log

【问题讨论】:

  • 正确拼写包名。 body-paeser 不是 body-parser

标签: javascript node.js express npm post


【解决方案1】:

你打错了。用这个

npm i body-parser

【讨论】:

    猜你喜欢
    • 2016-07-18
    • 2020-08-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-11
    相关资源
    最近更新 更多