(yarn) Error when downloding template: error An unexpected error occurred: "https://registry.yarnpkg.com/rocketseat-basic: Not found".
Closed this issue · 5 comments
DavyGuedes commented
Oi,
Tentei usar o template, mas ocorre um erro ao executar o comando do README.md
$ react-native init AwesomeExample --template rocketseat-basic
Error when downloding template: error An unexpected error occurred: "https://registry.yarnpkg.com/rocketseat-basic: Not found".
$ npx react-native init AwesomeExample --template rocketseat-basic
...
✖ Downloading template
error Error: Command failed: yarn add rocketseat-basic
error An unexpected error occurred: "https://registry.yarnpkg.com/rocketseat-basic: Not found".
yarn add v1.19.1
info No lockfile found.
[1/4] Resolving packages...
info If you think this is a bug, please open a bug report with the information provided in "/tmp/rncli-init-template-W9wX8F/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
DavyGuedes commented
O erro ocorre também com o npm (ambiente sem yarn).
node version: v10.17.0
npm version: 6.11.3
✖ Downloading template
error Error: Command failed: npm install --save --save-exact rocketseat-basic
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/rocketseat-basic - Not found
npm ERR! 404
npm ERR! 404 'rocketseat-basic@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! /home/davyg/.npm/_logs/2019-11-21T20_23_23_225Z-debug.log
DavyGuedes commented
Um error semelhante ocorre em Rocketseat/react-native-template-rocketseat-advanced#6
om-mahato commented
Hi do checkout this repo if interested
https://github.com/om-mahato/Login-Signup-React-Native-Template.git
jsvitor commented
@DavyGuedes, tente rodar este comando:
react-native init AwesomeExample react-native-template-rocketseat-basic
brunofunnie commented
@DavyGuedes, tente rodar este comando:
react-native init AwesomeExample react-native-template-rocketseat-basic
Este comando cria um projeto novo usando como base o template React Native da comunidade, não da Rocketseat. Recomendo criar um projeto novo e clonar o da Rocketseat em cima