Next.js: Can't npm install next

Created on 6 Aug 2020  Â·  4Comments  Â·  Source: vercel/next.js

Bug report

Describe the bug

When you install from scratch in a clean repo, you get 404 error with a @ampproject/toolbox-optimizer dependency:

npm install next react react-dom
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@ampproject%2ftoolbox-optimizer - Not found
npm ERR! 404 
npm ERR! 404  '@ampproject/[email protected]' 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 It was specified as a dependency of 'next'
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!     /Users/lovebeam/.npm/_logs/2020-08-06T09_14_31_325Z-debug.log
âžœ  gramotool git:(master) ✗ npm install [email protected] react react-dom
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@ampproject%2ftoolbox-optimizer - Not found
npm ERR! 404 
npm ERR! 404  '@ampproject/[email protected]' 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 It was specified as a dependency of 'next'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create empty folder, make npm init.
  2. Type npm install next react react-dom as it said in Nextjs docs.
  3. Get an error with a dependency not found

Most helpful comment

npm is having trouble, you can follow their status page.

All 4 comments

npm is having trouble, you can follow their status page.

npm is having trouble, you can follow their status page.

Spent at least one hour trying to figure out why i could not install it. :(

+1

Our fix seems to be working and package installation issues should be resolved now. We continue to monitor the service closely and apologize for the inconvenience.

the issue is resolved

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kenji4569 picture kenji4569  Â·  3Comments

YarivGilad picture YarivGilad  Â·  3Comments

sospedra picture sospedra  Â·  3Comments

olifante picture olifante  Â·  3Comments

renatorib picture renatorib  Â·  3Comments