npm ERR! 405方法不允许:express @ latest [英] npm ERR! 405 Method Not Allowed: express@latest
本文介绍了npm ERR! 405方法不允许:express @ latest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在这里发布的405个相关问题中,没有一个适用于我的问题.
Of the several 405 related Questions posted here, none apply to my issue.
这是我从台式机上的Windows 7发出的命令:
npm install express
以下是错误消息:
npm ERR! code E405
npm ERR! 405 Method Not Allowed: express@latest
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mr9832\AppData\Roaming\npm-cache\_logs\2018-02-21T20_36_09_581Z-debug.log
这是上面提到的详细错误日志
C:\ Users \ mr9832 \ AppData \ Roaming \ npm-cache_logs \ 2018-02-21T20_36_09_581Z-debug.log
C:\Users\mr9832\AppData\Roaming\npm-cache_logs\2018-02-21T20_36_09_581Z-debug.log
我该如何解决?
推荐答案
这个答案可能为时已晚,但我遇到了同样的问题.我通过在npm配置(位于%USERDATA%/.npmrc
中)中放置以下设置来修复它:
This answer is probably a little bit too late, but I had the same problem. I fixed it by putting following settings in the npm config (located in %USERDATA%/.npmrc
):
strict-ssl=false
registry=http://registry.npmjs.org
它通过普通的http
而不是安全的https
来请求软件包.
It requests the packages over plain http
instead of the secure https
.
这篇关于npm ERR! 405方法不允许:express @ latest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文