Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-react-app failing due to dependency not found #7466

Closed
kamalsomani opened this issue Aug 2, 2019 · 2 comments
Closed

create-react-app failing due to dependency not found #7466

kamalsomani opened this issue Aug 2, 2019 · 2 comments

Comments

@kamalsomani
Copy link

kamalsomani commented Aug 2, 2019

I am trying
npx create-react-app my-app
but it keeps failing with below error

yarn add v1.16.0
info No lockfile found.
[1/4] 馃攳  Resolving packages...
warning react-scripts > fsevents@2.0.6: Please update: there are crash fixes
warning react-scripts > postcss-preset-env > postcss-color-functional-notation > postcss-values-parser > flatten@1.0.2: I wrote this module a very long time ago; you should use something else.
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()
error Couldn't find package "@xtuc/long@4.2.2" required by "@webassemblyjs/wast-parser@1.8.5" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Error: Couldn't find package "@xtuc/long@4.2.2" required by "@webassemblyjs/leb128@1.8.5" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:721:66)
    at new MessageError (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:750:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:36265:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:317:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@xtuc/long@4.2.2" required by "@webassemblyjs/wast-printer@1.8.5" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:721:66)
    at new MessageError (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:750:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:36265:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:317:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@xtuc/ieee754@^1.2.0" required by "@webassemblyjs/ieee754@1.8.5" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:721:66)
    at new MessageError (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:750:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:36265:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.16.0/libexec/lib/cli.js:317:13
    at process._tickCallback (internal/process/next_tick.js:68:7)

Aborting installation.

System config:
Node version : v10.9.0
OS: MacOS Mojave 10.14.6

@heyimalex
Copy link
Contributor

Still happening?

@kamalsomani
Copy link
Author

Still happening?

I removed my .npmrc and then it worked.
I already had both npm and yarn latest.

my .npmrc (modified)

_auth=b2MAmlBaW4uasdwtLsdsNvbsdTpBS0NwNWJ0cEtHWXhVO....
always-auth=true
@myproject:registry=https://artifactory.devops.com:443/artifactory/api/npm/myproject-npm-local/
//artifactory.devops.com/artifactory/api/npm/myproject-npm-local/:_password="xxyw=="
//artifactory.devops.com/artifactory/api/npm/myproject-npm-local/:username=kamal
//artifactory.devops.com/artifactory/api/npm/myproject-npm-local/:email=kamal@test.com
//artifactory.devops.com/artifactory/api/npm/myproject-npm-local/:always-auth=true
registry=http://registry.npmjs.org

@lock lock bot locked and limited conversation to collaborators Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants