简体   繁体   English

npm ERR:404 未找到 - 获取 https.//registry.npmjs.org/create-myreactnativeapp - 未找到

[英]npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-myreactnativeapp - Not found

I installed the Expo CLI and Node version 12我安装了 Expo CLI 和节点版本 12

When I tried to create a new react native project I get this error当我尝试创建一个新的 react native 项目时,出现此错误

See error image here在此处查看错误图像

Error错误

PS C:\Users\leosu\Documents\GitProjects> npm init myreactnativeapp npm ERR! PS C:\Users\leosu\Documents\GitProjects> npm init myreactnativeapp npm ERR! code E404 npm ERR!代码 E404 npm 错误! 404 Not Found - GET https://registry.npmjs.org/create-myreactnativeapp - Not found npm ERR. 404 未找到 - 获取https://registry.npmjs.org/create-myreactnativeapp - 未找到 npm 错误。 404 npm ERR, 404 'create-myreactnativeapp@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 'create-myreactnativeapp@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 npm 错误! 404 Note that you can also install from a npm ERR! 404 请注意,您也可以从 npm 错误安装! 404 tarball, folder, http url, or git url. 404 压缩包、文件夹、http url 或 git url。

npm ERR: A complete log of this run can be found in: npm ERR. npm ERR:此运行的完整日志可在以下位置找到:npm ERR。 C:\Users\leosu\AppData\Roaming\npm-cache_logs\2020-05-12T23_54_32_833Z-debug.log Install for [ 'create-myreactnativeapp@latest' ] failed with code 1 PS C:\Users\leosu\Documents\GitProjects> C:\Users\leosu\AppData\Roaming\npm-cache_logs\2020-05-12T23_54_32_833Z-debug.log 安装 ['create-myreactnativeapp@latest'] 失败,代码 1 PS C:\Users\leosu\Documents\GitProject >

Any ideas on how to solve this?关于如何解决这个问题的任何想法?

If you're using Expo it should be:如果您使用的是 Expo 它应该是:

expo init myreactnativeapp

Instead of npm init myreactnativeapp而不是npm init myreactnativeapp

Assuming that you already ran npm install -g expo-cli假设你已经运行了npm install -g expo-cli

暂无
暂无

声明:本站的技术帖子网页,遵循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:请求 https://registry.npmjs.org/corepack 失败,原因:连接 EHOSTUNREACH - NPM: request to https://registry.npmjs.org/corepack failed, reason: connect EHOSTUNREACH npm 错误! 对 https://registry.npmjs.org/node-modules 的请求失败,原因:错误:0906D06C:PEM 例程:PEM_read_bio:没有起始行 - npm ERR! request to https://registry.npmjs.org/node-modules failed, reason: error:0906D06C:PEM routines:PEM_read_bio:no start line 对https://registry.npmjs.org/yargs的请求失败 - request to https://registry.npmjs.org/yargs failed npm ERR: FetchError: request to http.//registry.npmjs,org/webpack-dev-server failed: 原因。 连接 ECONNREFUSED 127.0.0:1:8000 - npm ERR! FetchError: request to http://registry.npmjs.org/webpack-dev-server failed, reason: connect ECONNREFUSED 127.0.0.1:8000 `npm audit` 不断返回“您配置的注册表 (https://registry.npmjs.org/) 不支持审核请求。”。 我如何让它再次工作? - `npm audit` keeps returning "Your configured registry (https://registry.npmjs.org/) does not support audit requests.". How do I make it work again? npm ERR! 找不到404 npm错误! 错误代码0 - npm ERR! 404 Not Found npm ERR! not ok code 0 找不到npm错误404 - npm error 404 not found 创建反应应用错误! 404 Object 未找到 - create-react-app ERR! 404 Object Not Found 从 npmjs.org 的注册表中确定 NPM 包的源 url? - Determine NPM package's source url from npmjs.org's registry?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM