nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.27k stars 2.32k forks source link

error Couldn't find any versions for "@babel/helper-wrap-function" that matches "^7.10.4" #3254

Closed hadrien-toma closed 4 years ago

hadrien-toma commented 4 years ago

Current Behavior

The application is not created.

Expected Behavior

The creation of the application.

Steps to Reproduce

cd ~

rm -rf ./nx-architecture-workshop-playground

npx \
    create-nx-workspace@^9.5 \
        nx-architecture-workshop-playground \
            --npm-scope=my-scope \
            --cli=angular \
            --interactive=false \
            --preset=empty \
            --style=scss \
            --skipGit=true \
            --nx-cloud=false

cd nx-architecture-workshop-playground

yarn add @nrwl/angular@^9.5

yarn \
    run \
        nx \
            generate \
                @nrwl/angular:application \
                    my-app \
                        --directory=my-wrapper \
                        --e2e-test-runner=cypress \
                        --interactive=false \
                        --routing=true \
                        --style=scss \
                        --unit-test-runner=jest

Failure Logs

npx: installed 197 in 17.862s
Creating a sandbox with Nx...
warning @angular/cli > universal-analytics > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
new nx-architecture-workshop-playground "--npm-scope=my-scope" "--skipGit=true" --preset="empty" --interactive=false --collection=@nrwl/workspace
CREATE nx-architecture-workshop-playground/nx.json (468 bytes)
CREATE nx-architecture-workshop-playground/tsconfig.json (475 bytes)
CREATE nx-architecture-workshop-playground/README.md (3489 bytes)
CREATE nx-architecture-workshop-playground/.editorconfig (245 bytes)
CREATE nx-architecture-workshop-playground/.gitignore (503 bytes)
CREATE nx-architecture-workshop-playground/.prettierignore (74 bytes)
CREATE nx-architecture-workshop-playground/.prettierrc (25 bytes)
CREATE nx-architecture-workshop-playground/angular.json (90 bytes)
CREATE nx-architecture-workshop-playground/package.json (1160 bytes)
CREATE nx-architecture-workshop-playground/decorate-angular-cli.js (2990 bytes)
CREATE nx-architecture-workshop-playground/tools/tsconfig.tools.json (204 bytes)
CREATE nx-architecture-workshop-playground/tools/schematics/.gitkeep (0 bytes)
CREATE nx-architecture-workshop-playground/apps/.gitkeep (0 bytes)
CREATE nx-architecture-workshop-playground/libs/.gitkeep (0 bytes)
✔ Packages installed successfully.

———————————————————————————————————————————————

>  NX   NOTE  Nx CLI is not installed globally.

  This means that you might have to use "yarn nx" or "npm nx" to execute commands in the workspace.
  Run "yarn global add @nrwl/cli" or "npm install -g @nrwl/cli" to be able to execute command directly.

yarn add v1.21.1
[1/4] Resolving packages...
Couldn't find any versions for "@babel/helper-wrap-function" that matches "^7.10.4"
? Please choose a version of "@babel/helper-wrap-function" from this list: (Use arrow keys)
❯ 7.10.1 
  7.8.3 
  7.8.0 
? Please choose a version of "@babel/helper-wrap-function" from this list: 7.10.1
[2/4] Fetching packages...
info fsevents@2.1.3: The platform "linux" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @nrwl/angular@9.5.0" has unmet peer dependency "tslib@^1.10.0".
warning "@nrwl/angular > jasmine-marbles@0.6.0" has unmet peer dependency "rxjs@^6.4.0".
warning "@nrwl/angular > @nrwl/cypress@9.5.0" has unmet peer dependency "cypress@>= 3 < 5".
warning "@nrwl/angular > @nrwl/cypress > @cypress/webpack-preprocessor@4.1.5" has unmet peer dependency "webpack@^4.18.1".
warning "@nrwl/angular > @nrwl/cypress > @cypress/webpack-preprocessor > babel-loader@8.1.0" has unmet peer dependency "webpack@>=2".[4/4] Building fresh packages...
success Saved lockfile.success Saved 176 new dependencies.
info Direct dependencies
└─ @nrwl/angular@9.5.0
info All dependencies
├─ @babel/compat-data@7.10.4
├─ @babel/core@7.10.4
├─ @babel/helper-builder-binary-assignment-operator-visitor@7.10.4
├─ @babel/helper-compilation-targets@7.10.4
├─ @babel/helper-define-map@7.10.4
├─ @babel/helper-explode-assignable-expression@7.10.4
├─ @babel/helper-function-name@7.10.4
├─ @babel/helper-hoist-variables@7.10.4
├─ @babel/helper-wrap-function@7.10.1
├─ @babel/helpers@7.10.4
├─ @babel/plugin-proposal-async-generator-functions@7.10.4
├─ @babel/plugin-proposal-class-properties@7.10.4
├─ @babel/plugin-proposal-dynamic-import@7.10.4
├─ @babel/plugin-proposal-json-strings@7.10.4
├─ @babel/plugin-proposal-nullish-coalescing-operator@7.10.4
├─ @babel/plugin-proposal-numeric-separator@7.10.4
├─ @babel/plugin-proposal-object-rest-spread@7.10.4
├─ @babel/plugin-proposal-optional-catch-binding@7.10.4
├─ @babel/plugin-proposal-optional-chaining@7.10.4
├─ @babel/plugin-proposal-private-methods@7.10.4
├─ @babel/plugin-proposal-unicode-property-regex@7.10.4
├─ @babel/plugin-syntax-class-properties@7.10.4
├─ @babel/plugin-syntax-numeric-separator@7.10.4
├─ @babel/plugin-syntax-top-level-await@7.10.4
├─ @babel/plugin-transform-arrow-functions@7.10.4
├─ @babel/plugin-transform-async-to-generator@7.10.4
├─ @babel/plugin-transform-block-scoped-functions@7.10.4
├─ @babel/plugin-transform-block-scoping@7.10.4
├─ @babel/plugin-transform-classes@7.10.4
├─ @babel/plugin-transform-computed-properties@7.10.4
├─ @babel/plugin-transform-destructuring@7.10.4
├─ @babel/plugin-transform-dotall-regex@7.10.4
├─ @babel/plugin-transform-duplicate-keys@7.10.4
├─ @babel/plugin-transform-exponentiation-operator@7.10.4
├─ @babel/plugin-transform-for-of@7.10.4
├─ @babel/plugin-transform-function-name@7.10.4
├─ @babel/plugin-transform-literals@7.10.4
├─ @babel/plugin-transform-member-expression-literals@7.10.4
├─ @babel/plugin-transform-modules-amd@7.10.4
├─ @babel/plugin-transform-modules-commonjs@7.10.4
├─ @babel/plugin-transform-modules-systemjs@7.10.4
├─ @babel/plugin-transform-modules-umd@7.10.4
├─ @babel/plugin-transform-named-capturing-groups-regex@7.10.4
├─ @babel/plugin-transform-new-target@7.10.4
├─ @babel/plugin-transform-object-super@7.10.4
├─ @babel/plugin-transform-parameters@7.10.4
├─ @babel/plugin-transform-property-literals@7.10.4
├─ @babel/plugin-transform-regenerator@7.10.4
├─ @babel/plugin-transform-reserved-words@7.10.4
├─ @babel/plugin-transform-shorthand-properties@7.10.4
├─ @babel/plugin-transform-spread@7.10.4
├─ @babel/plugin-transform-sticky-regex@7.10.4
├─ @babel/plugin-transform-template-literals@7.10.4
├─ @babel/plugin-transform-typeof-symbol@7.10.4
├─ @babel/plugin-transform-unicode-escapes@7.10.4
├─ @babel/plugin-transform-unicode-regex@7.10.4
├─ @babel/preset-env@7.10.3
├─ @babel/preset-modules@0.1.3
├─ @babel/runtime@7.10.4
├─ @babel/template@7.10.4
├─ @babel/traverse@7.10.4
├─ @babel/types@7.10.4
├─ @cypress/webpack-preprocessor@4.1.5
├─ @nrwl/angular@9.5.0
├─ @nrwl/cypress@9.5.0
├─ @nrwl/jest@9.5.0
├─ @types/json-schema@7.0.5
├─ @types/json5@0.0.29
├─ ajv-keywords@3.5.0
├─ anymatch@3.1.1
├─ arr-flatten@1.1.0
├─ assign-symbols@1.0.0
├─ atob@2.1.2
├─ babel-code-frame@6.26.0
├─ babel-loader@8.1.0
├─ base@0.11.2
├─ big.js@5.2.2
├─ binary-extensions@2.1.0
├─ bluebird@3.7.1
├─ braces@2.3.2
├─ browserslist@4.12.2
├─ cache-base@1.0.1
├─ caniuse-lite@1.0.30001090
├─ chokidar@3.4.0
├─ class-utils@0.3.6
├─ collection-visit@1.0.0
├─ commondir@1.0.1
├─ convert-source-map@1.7.0
├─ copy-descriptor@0.1.1
├─ core-js-compat@3.6.5
├─ decode-uri-component@0.2.0
├─ electron-to-chromium@1.3.483
├─ emojis-list@3.0.0
├─ errno@0.1.7
├─ escalade@3.0.1
├─ expand-brackets@2.1.4
├─ extglob@2.0.4
├─ fill-range@4.0.0
├─ find-cache-dir@2.1.0
├─ for-in@1.0.2
├─ fork-ts-checker-webpack-plugin@3.1.1
├─ gensync@1.0.0-beta.1
├─ get-value@2.0.6
├─ has-ansi@2.0.0
├─ has-value@1.0.0
├─ is-accessor-descriptor@1.0.0
├─ is-binary-path@2.1.0
├─ is-data-descriptor@1.0.0
├─ is-descriptor@1.0.2
├─ is-plain-object@2.0.4
├─ is-windows@1.0.2
├─ isarray@1.0.0
├─ jasmine-marbles@0.6.0
├─ jsesc@2.5.2
├─ json5@1.0.1
├─ kind-of@3.2.2
├─ leven@3.1.0
├─ loader-utils@1.4.0
├─ loose-envify@1.4.0
├─ make-dir@2.1.0
├─ map-visit@1.0.0
├─ memory-fs@0.5.0
├─ microevent.ts@0.1.1
├─ micromatch@3.1.10
├─ mixin-deep@1.3.2
├─ nanomatch@1.2.13
├─ node-releases@1.1.58
├─ normalize-path@3.0.0
├─ object-copy@0.1.0
├─ pascalcase@0.1.1
├─ picomatch@2.2.2
├─ pkg-dir@3.0.0
├─ posix-character-classes@0.1.1
├─ private@0.1.8
├─ process-nextick-args@2.0.1
├─ prr@1.0.1
├─ readable-stream@2.3.7
├─ readdirp@3.4.0
├─ regenerate-unicode-properties@8.2.0
├─ regenerator-runtime@0.13.5
├─ regenerator-transform@0.14.4
├─ regexpu-core@4.7.0
├─ regjsgen@0.5.2
├─ regjsparser@0.6.4
├─ repeat-element@1.1.3
├─ resolve-url@0.2.1
├─ ret@0.1.15
├─ safe-buffer@5.1.2
├─ schema-utils@2.7.0
├─ set-value@2.0.1
├─ snapdragon-node@2.1.1
├─ snapdragon-util@3.0.1
├─ source-map-resolve@0.5.3
├─ source-map-url@0.4.0
├─ source-map@0.5.7
├─ split-string@3.1.0
├─ static-extend@0.1.2
├─ string_decoder@1.1.1
├─ to-fast-properties@2.0.0
├─ to-object-path@0.3.0
├─ to-regex-range@2.1.1
├─ tree-kill@1.2.2
├─ ts-loader@5.4.5
├─ tsconfig-paths-webpack-plugin@3.2.0
├─ tsconfig-paths@3.9.0
├─ unicode-canonical-property-names-ecmascript@1.0.4
├─ unicode-match-property-ecmascript@1.0.4
├─ unicode-match-property-value-ecmascript@1.2.0
├─ unicode-property-aliases-ecmascript@1.1.0
├─ union-value@1.0.1
├─ unset-value@1.0.0
├─ urix@0.1.0
├─ use@3.1.1
├─ util-deprecate@1.0.2
├─ webpack-node-externals@1.7.2
└─ worker-rpc@0.1.1
$ node ./decorate-angular-cli.js

>  NX  Angular CLI has been decorated to enable computation caching.

Done in 92.29s.
yarn run v1.21.1
$ nx generate @nrwl/angular:application my-app --directory=my-wrapper --e2e-test-runner=cypress --interactive=false --routing=true --style=scss --unit-test-runner=jest
CREATE jest.config.js (252 bytes)
CREATE tslint.json (2311 bytes)
CREATE apps/my-wrapper/my-app/tsconfig.json (100 bytes)
CREATE apps/my-wrapper/my-app/src/favicon.ico (15086 bytes)
CREATE apps/my-wrapper/my-app/browserslist (429 bytes)
CREATE apps/my-wrapper/my-app/tsconfig.app.json (166 bytes)
CREATE apps/my-wrapper/my-app/tslint.json (256 bytes)
CREATE apps/my-wrapper/my-app/src/index.html (335 bytes)
CREATE apps/my-wrapper/my-app/src/main.ts (377 bytes)
CREATE apps/my-wrapper/my-app/src/polyfills.ts (2833 bytes)
CREATE apps/my-wrapper/my-app/src/styles.scss (80 bytes)
CREATE apps/my-wrapper/my-app/src/assets/.gitkeep (0 bytes)
CREATE apps/my-wrapper/my-app/src/environments/environment.prod.ts (52 bytes)
CREATE apps/my-wrapper/my-app/src/environments/environment.ts (663 bytes)
CREATE apps/my-wrapper/my-app/src/app/app.module.ts (419 bytes)
CREATE apps/my-wrapper/my-app/src/app/app.component.scss (2088 bytes)
CREATE apps/my-wrapper/my-app/src/app/app.component.html (3017 bytes)
CREATE apps/my-wrapper/my-app/src/app/app.component.spec.ts (1024 bytes)
CREATE apps/my-wrapper/my-app/src/app/app.component.ts (220 bytes)
CREATE apps/my-wrapper/my-app/jest.config.js (357 bytes)
CREATE apps/my-wrapper/my-app/tsconfig.spec.json (236 bytes)
CREATE apps/my-wrapper/my-app/src/test-setup.ts (30 bytes)
CREATE apps/my-wrapper/my-app-e2e/tslint.json (100 bytes)
CREATE apps/my-wrapper/my-app-e2e/cypress.json (418 bytes)
CREATE apps/my-wrapper/my-app-e2e/tsconfig.e2e.json (191 bytes)
CREATE apps/my-wrapper/my-app-e2e/tsconfig.json (140 bytes)
CREATE apps/my-wrapper/my-app-e2e/src/fixtures/example.json (80 bytes)
CREATE apps/my-wrapper/my-app-e2e/src/integration/app.spec.ts (404 bytes)
CREATE apps/my-wrapper/my-app-e2e/src/plugins/index.js (832 bytes)
CREATE apps/my-wrapper/my-app-e2e/src/support/app.po.ts (47 bytes)
CREATE apps/my-wrapper/my-app-e2e/src/support/commands.ts (1068 bytes)
CREATE apps/my-wrapper/my-app-e2e/src/support/index.ts (599 bytes)
UPDATE angular.json (4156 bytes)
UPDATE package.json (2045 bytes)
UPDATE nx.json (641 bytes)
⠦ Installing packages...warning Lockfile has incorrect entry for "@babel/helper-wrap-function@^7.10.4". Ignoring it.
error Couldn't find any versions for "@babel/helper-wrap-function" that matches "^7.10.4"
✖ Package install failed, see above.
The Schematic workflow failed. See above.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Environment

> yarn run nx report
yarn run v1.21.1
$ nx report

>  NX  Report complete - copy this into the issue template

  @nrwl/angular : 9.5.0
  @nrwl/cli : 9.5.0
  @nrwl/cypress : 9.5.0
  @nrwl/eslint-plugin-nx : Not Found
  @nrwl/express : Not Found
  @nrwl/jest : 9.5.0
  @nrwl/linter : Not Found
  @nrwl/nest : Not Found
  @nrwl/next : Not Found
  @nrwl/node : Not Found
  @nrwl/react : Not Found
  @nrwl/schematics : Not Found
  @nrwl/tao : 9.5.0
  @nrwl/web : Not Found
  @nrwl/workspace : 9.5.0
  typescript : 3.8.3
igl commented 4 years ago

babel just published 7.10.4.. yet not all packages are available on the npm registry. maybe wait?

hadrien-toma commented 4 years ago

Yeap, I can wait. To avoid this impacting other developers, shouldn't we include a test of these "getting started" commands to validate a release? Or maybe this is due to a not enough deterministic versioning bug here?

hadrien-toma commented 4 years ago

In any case, I would be happy to help :slightly_smiling_face:

hadrien-toma commented 4 years ago

The new version of babel is now available, which makes the commands working :yum: . I still would be happy to help preventing this occurring in the future.

igl commented 4 years ago

https://github.com/babel/babel/issues/11766 i suspect npm was at fault here

hadrien-toma commented 4 years ago

Thank you for the link to this issue, I assume we can close this one. Feel free to re-open if it reveals to not be on NPM side.

github-actions[bot] commented 1 year ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.