Error running CLI, Error installing @expo%2fbunyan: User not found
Description
I am unable to run create-react-native-app AppName. Whenever I do so, I see the following output:
[ Sites ] ericmasiello 🐼 create-react-native-app AppName
Creating a new React Native app in /Users/ericmasiello/Sites/AppName.
Using package manager as yarnpkg with yarn interface.
Installing packages. This might take a couple minutes.
Installing react-native-scripts...
yarn add v0.27.5
info No lockfile found.
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@expo%2fbunyan: User not found".
info If you think this is a bug, please open a bug report with the information provided in "/Users/ericmasiello/Sites/AppName/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
`yarnpkg add --dev --exact --ignore-optional react-native-scripts` failed
Expected Behavior
- First ran
npm install -g create-react-native-app(installed without error or warning) - Then ran
create-react-native-app AppName - Expected to be able to then continue with the instructions explained here https://facebook.github.io/react-native/docs/getting-started.html
Observed Behavior
After running Then ran create-react-native-app AppName` I saw the following output:
yarn add v0.17.10
info No lockfile found.
[1/4] 🔍 Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@expo%2fbunyan: User not found".
info If you think this is a bug, please open a bug report with the information provided in "/Users/ericmasiello/Sites/AppName/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
`yarnpkg add --dev --exact --ignore-optional react-native-scripts` failed
Also, by running cat yarn-error.log I see the following output:
Arguments:
/Users/ericmasiello/.nvm/versions/node/v8.1.4/bin/node /usr/local/Cellar/yarn/0.27.5_1/libexec/bin/yarn.js add --dev --exact --ignore-optional react-native-scripts
PATH:
/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/ericmasiello/.nvm/versions/node/v8.1.4/bin:~/Library/Android/sdk/tools:~/Library/Android/sdk/platform-tools:~/Development/mongodb-osx-x86_64-3.2.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:~/Library/Python/3.6/bin
Yarn version:
0.27.5
Node version:
8.1.4
Platform:
darwin x64
npm manifest:
{
"name": "AppName",
"version": "0.1.0",
"private": true
}
yarn manifest:
No manifest
Lockfile:
No lockfile
Trace:
Error: https://registry.yarnpkg.com/@expo%2fbunyan: User not found
at Request.params.callback [as _callback] (/usr/local/Cellar/yarn/0.27.5_1/libexec/lib/yarn-cli.js:58200:18)
at Request.self.callback (/usr/local/Cellar/yarn/0.27.5_1/libexec/lib/yarn-cli.js:114242:22)
at emitTwo (events.js:125:13)
at Request.emit (events.js:213:7)
at Request.<anonymous> (/usr/local/Cellar/yarn/0.27.5_1/libexec/lib/yarn-cli.js:115225:10)
at emitOne (events.js:115:13)
at Request.emit (events.js:210:7)
at IncomingMessage.<anonymous> (/usr/local/Cellar/yarn/0.27.5_1/libexec/lib/yarn-cli.js:115145:12)
at Object.onceWrapper (events.js:314:30)
at emitNone (events.js:110:20)
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts:
[email protected] /Users/ericmasiello/Sites/AppName └── (empty)
npm ls react-native:
[email protected] /Users/ericmasiello/Sites/AppName └── (empty)
npm ls expo:
[email protected] /Users/ericmasiello/Sites/AppName └── (empty)
node -v: v8.1.4npm -v: 5.3.0yarn --version: 0.27.5watchman version:
{ "version": "4.7.0" }
Also specify:
- Operating system: macOS Siera version 10.12.6
- Phone/emulator/simulator & version: N/A
Reproducible Demo
Please provide a minimized reproducible demonstration of the problem you're reporting.
Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.
Anyone have any suggestions?
strange, this looks like a bug with yarn, perhaps transient. works on my machine:
╭─~/coding/testing/test-install-bunyan yarn add @expo/bunyan
yarn add v0.27.5
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 18 new dependencies.
├─ @expo/[email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
Done in 2.36s.
can you try creating a new empty project and running mkdir whatever && cd whatever && yarn init then installing @expo/bunyan?
@brentvatne thanks for the response. Same problem:
[ whatever ] ericmasiello 🐼 yarn add @expo/bunyan
yarn add v0.27.5
info No lockfile found.
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@expo%2fbunyan: User not found".
info If you think this is a bug, please open a bug report with the information provided in "/Users/ericmasiello/Sites/__throw-away__/whatever/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
[ whatever ] ericmasiello 🐼
I am getting a similar error. Cannot install @expo/bunyan at all. npm update does nothing,
$/npm install @expo/bunyan
npm ERR! Darwin 15.2.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" @expo/bunyan npm ERR! node v7.7.1 npm ERR! npm v4.1.2
npm ERR! Invalid name: (A)expo/bunyan (@ wont work) npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request: npm ERR! /Code/node/npm-debug.log
npm-debug.log says @expo doesnt exist:
9 silly mapToRegistry name @expo/bunyan 10 silly mapToRegistry scope (from package name) @expo 11 verbose mapToRegistry no registry URL found in name for scope @expo 12 silly mapToRegistry using default registry 13 silly mapToRegistry registry https://registry.npmjs.org/ 14 silly mapToRegistry data Result { 14 silly mapToRegistry raw: '@expo/bunyan', 14 silly mapToRegistry scope: '@expo', 14 silly mapToRegistry escapedName: '@expo%2fbunyan', 14 silly mapToRegistry name: '@expo/bunyan', 14 silly mapToRegistry rawSpec: '', 14 silly mapToRegistry spec: 'latest', 14 silly mapToRegistry type: 'tag' } 15 silly mapToRegistry uri https://registry.npmjs.org/@expo%2fbunyan 16 verbose request uri https://registry.npmjs.org/@expo%2fbunyan 17 verbose request no auth needed 18 info attempt registry request try #1 at 4:05:30 PM 19 verbose request id c1bf9e100b2ef665 20 verbose etag W/"599f7325-f04a" 21 verbose lastModified Fri, 25 Aug 2017 00:45:25 GMT
Yeah the problem still exists on my end
maybe this is related? https://github.com/yarnpkg/yarn/issues/1394
@brentvatne yup. Its a yarn issue. Thanks!