question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error Couldn't find package "@timer/detect-port" on the "npm" registry

See original GitHub issue

If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.

Can you reproduce the problem with latest npm?

Yes

Many errors, especially related to “missing modules”, are due to npm bugs.

If you’re using Windows, follow these instructions to update npm.

If you’re using OS X or Linux, run this to update npm:

npm install -g npm@latest

cd your_project_directory
rm -rf node_modules
npm install

Then try to reproduce the issue again.

Can you still reproduce it? Yes

Description

create-react-app my-project
Creating a new React app in /Users/z013mrq/my-project.

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

yarn add v0.23.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
error Couldn't find package "@timer/detect-port" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

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

Deleting generated file... package.json
Deleting my-project / from /Users/z013mrq
Done.

What are you reporting?

Expected behavior

Tell us what you think should happen.

Actual behavior

Tell us what actually happens.

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected):
  2. node -v:
  3. npm -v:

Then, specify:

  1. Operating system:
  2. Browser and version:

Reproducible Demo

Please take the time to create a new app that reproduces the issue.

Alternatively, you could copy your app that experiences the problem and start removing things until you’re left with the minimal reproducible demo.

(Accidentally, you might get to the root of your problem during that process.)

Push to GitHub and paste the link here.

By doing this, you’re helping the Create React App contributors a big time! Demonstrable issues gets fixed faster.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
prasanncommented, Jun 7, 2017

I am using a private npm registry and came across the same issue. I understand that this is not CRA issue.

My workaround is to bypass my private registry for this package alone.

npm config set @timer:registry https://registry.npmjs.org/

Hope this helps for others who have a similar issue.

3reactions
gaearoncommented, Jun 28, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Couldn't find package "package-name" on the "npm" registry ...
Whenever executing yarn install I get an error message - Couldn't find package "[PACKAGE_NAME]" on the "npm" registry .
Read more >
node.js - Yarn global add <package> gives error "couldn't find ...
This error was resloved by running npm config set registry https://registry.npmjs.org/. npm registry was missing in config file.
Read more >
Couldn't find package - Netlify Support Forums
I am getting the below error while deploying my first site in Netlify error Couldn't find package “@organization/reponame” on the “npm” ...
Read more >
npm packages in the Package Registry - GitLab Docs
Learn how to build an npm or yarn package. Watch a video demo of how to publish npm packages to the GitLab Package...
Read more >
npm-registry-fetch
This header is used by the npm registry to identify the toplevel package scope that a particular project installation is using. opts.proxy. Type ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found