![](/img/trans.png)
[英]eslint npm ERR! 404 Not Found - GET https://registry.npmjs.org/eslist - Not found
[英]npm ERR! 404 Not Found - GET https://registry.npmjs.org/create-myreactnativeapp - Not found
我安裝了 Expo CLI 和節點版本 12
當我嘗試創建一個新的 react native 項目時,出現此錯誤
錯誤
PS C:\Users\leosu\Documents\GitProjects> npm init myreactnativeapp npm ERR! 代碼 E404 npm 錯誤! 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 錯誤! 404 請注意,您也可以從 npm 錯誤安裝! 404 壓縮包、文件夾、http url 或 git url。
npm ERR:此運行的完整日志可在以下位置找到:npm ERR。 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 >
關於如何解決這個問題的任何想法?
如果您使用的是 Expo 它應該是:
expo init myreactnativeapp
而不是npm init myreactnativeapp
假設你已經運行了npm install -g expo-cli
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.