简体   繁体   English

npm 错误! E404 未找到 - 获取 https://registry.npmjs.org/corsexpress - 未找到 'corsexpress@*' 不在此注册表中

[英]npm ERR! E404 Not Found - GET https://registry.npmjs.org/corsexpress - Not found 'corsexpress@*' is not in this registry

I'm trying to create Full Stack MERN Project using React + Redux, Node, Express, MongoDB.我正在尝试使用 React + Redux、Node、Express、MongoDB 创建全栈 MERN 项目。
When I use below command, I'm getting an error with a warning.当我使用下面的命令时,我收到一个带有警告的错误。

npm install body-parser corsexpress mongoose nodemon

npm ERR! npm 错误! 404 Not Found - GET https://registry.npmjs.org/corsexpress - Not found npm ERR! 404 未找到 - 获取https://registry.npmjs.org/corsexpress - 未找到 npm ERR! 404 npm ERR! 404 npm 错误! 404 'corsexpress@*' is not in this registry. 404 'corsexpress@*' 不在此注册表中。
npm WARN config global --global , --local are deprecated. npm WARN config global --global--local已弃用。 Use --location=global instead.请改用--location=global

如果您打算使用cors中间件,请运行npm install cors

Typing command npm install body-parser cors express mongoose nodemon instead of typing npm install body-parser corsexpress mongoose nodemon键入命令npm install body-parser cors express mongoose nodemon而不是键入npm install body-parser corsexpress mongoose nodemon
Afterwards issue fixed by removing 'corsexpress' from pacakge.json dependencies.之后通过从 pacakge.json 依赖项中删除 'corsexpress' 来解决问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 eslint npm ERR: 404 Not Found - GET https.//registry.npmjs.org/eslist - 未找到 - eslint npm ERR! 404 Not Found - GET https://registry.npmjs.org/eslist - Not found npm ERR:404 未找到 - 获取 https.//registry.npmjs.org/create-myreactnativeapp - 未找到 - npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-myreactnativeapp - Not found npm ERR: 404 Not Found - GET https.//registry.npmjs org/error-ex - npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex 发布时出现 404 错误 npm package - `npm ERR: 404 Not Found - PUT https.//registry.npmjs.org/` - 404 error while publishing npm package - `npm ERR! 404 Not Found - PUT https://registry.npmjs.org/` Hyperledger Fabric:ERR:404 Not Found - GET https.//registry.npmjs.org/fabric-chaincode-api (v 1.4.5) - Hyperledger Fabric: ERR! 404 Not Found - GET https://registry.npmjs.org/fabric-chaincode-api (v 1.4.5) React native expo cli 安装错误:404 Not Found - GET https://registry.npmjs.org/error-ex - React native expo cli installing error:404 Not Found - GET https://registry.npmjs.org/error-ex 安装量角器-注册表在https://registry.npmjs.org/@types%2fnode返回GET的404 - Installing protractor - Registry returned 404 for GET on https://registry.npmjs.org/@types%2fnode Hyperledger Fabric 实例化超时 .npm ERR! 网络超时:https://registry.npmjs.org - Hyperledger fabric instantiate timeout .npm ERR! network timeout at: https://registry.npmjs.org npm ERR:对 https.//registry.npmjs.org 的请求在对 Node.js Z2567A5EC3700EB84 - npm ERR! request to https://registry.npmjs.org during Dockerizing a Node.js web app 在运行 npm install 以绕过 artifactory 时,如何使用类似于 `--registry https://registry.npmjs.org` 的内容运行 npx? - How to run npx with something similar to `--registry https://registry.npmjs.org` when running npm install to get around artifactory?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM