[英]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 项目时,出现此错误
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.