Problems Installing CRA & NextJS from NPM (Error: Couldn’t find package “@babel/core” on “npm” registry)

Total
1
Shares

TL;DR

Each of the following commands fail with a similar error…

Couldn’t find package “@babel/core” on “npm” registry

  • create-react-app test
  • npm install --save next
  • yarn add next

Log Results of create-react-app test

Creating a new React app in /Users/ChrisGeirman/dev/node/react/next/test.

Installing packages. This might take a couple minutes.
Installing react, react-dom, and react-scripts...

yarn add v1.7.0
warning ../../package.json: No license field
info No lockfile found.
[1/4] 🔍  Resolving packages...
⠁ (node:8309) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Bu
ffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
error Couldn't find package "@babel/core" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
warning react-scripts > jest > jest-cli > prompts > [email protected]: Please upgrade to [email protected] or migrate to 'ansi-colors' if
you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0> for migration path(s).
warning react-scripts > eslint > file-entry-cache > flat-cache > [email protected]: CircularJSON is in maintenance only,
 flatted is its successor.
Error: Couldn't find package "@svgr/webpack" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/core" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/code-frame" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/code-frame" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/code-frame" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/traverse" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/parser" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/types" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/plugin-proposal-class-properties" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/plugin-proposal-object-rest-spread" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/plugin-syntax-dynamic-import" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/plugin-proposal-decorators" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/plugin-transform-classes" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/plugin-transform-destructuring" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/plugin-transform-react-display-name" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/preset-env" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/plugin-transform-react-constant-elements" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/plugin-transform-runtime" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/plugin-transform-flow-strip-types" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/preset-react" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/preset-typescript" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/runtime" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@types/tapable" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@webassemblyjs/ast" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@webassemblyjs/helper-module-context" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@webassemblyjs/wasm-edit" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@webassemblyjs/wasm-parser" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@csstools/convert-colors" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@nodelib/fs.stat" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@mrmlnc/readdir-enhanced" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@csstools/convert-colors" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Couldn't find package "@babel/code-frame" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at process._tickCallback (internal/process/next_tick.js:68:7)

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts has failed.

Deleting generated file... package.json
Deleting test/ from /Users/ChrisGeirman/dev/node/react/next
Done.

Log Results of npm install --save next

npm install --save next
npm ERR! code E401
npm ERR! 404 401 Unauthorized: @babel/[email protected]

Log Results of yarn add next

yarn add next
yarn add v1.7.0
warning ../package.json: No license field
[1/4] 🔍  Resolving packages...
error Couldn't find package "@babel/core" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Error: Couldn't find package "@babel/preset-react" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@babel/plugin-syntax-dynamic-import" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@babel/preset-env" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@babel/plugin-transform-runtime" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@babel/runtime" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@babel/plugin-proposal-class-properties" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@babel/runtime-corejs2" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@babel/plugin-proposal-object-rest-spread" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@babel/template" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@webassemblyjs/helper-module-context" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@webassemblyjs/wasm-edit" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@webassemblyjs/wasm-parser" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Error: Couldn't find package "@webassemblyjs/ast" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/Users/ChrisGeirman/.yarn/lib/cli.js:243:66)
    at new MessageError (/Users/ChrisGeirman/.yarn/lib/cli.js:272:123)
    at NpmResolver.<anonymous> (/Users/ChrisGeirman/.yarn/lib/cli.js:52381:15)
    at Generator.next (<anonymous>)
    at step (/Users/ChrisGeirman/.yarn/lib/cli.js:98:30)
    at /Users/ChrisGeirman/.yarn/lib/cli.js:109:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

System information

  • OS: macOS
  • Browser: N/A
  • npm v5.6.0 and v6.4.1 (both tried, but failed)
  • yarn v1.7.0

My Question

I’m assuming this is just me and not everyone, else there would certainly be an uproar among developers. But I’m not sure how to tackle this issue. Should I uninstall node/npm entirely and start over? If so, what’s the best way to do that?


Solution

we were experiencing this same issue this morning, deleting the npmrc file worked for us, hope that helps!
rm ~/.npmrc

Leave a Reply

Your email address will not be published. Required fields are marked *