简体   繁体   中英

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

I installed the Expo CLI and Node version 12

When I tried to create a new react native project I get this error

See error image here

Error

PS C:\Users\leosu\Documents\GitProjects> npm init myreactnativeapp npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-myreactnativeapp - Not found 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 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\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>

Any ideas on how to solve this?

If you're using Expo it should be:

expo init myreactnativeapp

Instead of npm init myreactnativeapp

Assuming that you already ran npm install -g expo-cli

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM