error Couldn't find package "@timer/detect-port" on the "npm" registry
See original GitHub issueIf 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:
npm ls react-scripts
(if you haven’t ejected):node -v
:npm -v
:
Then, specify:
- Operating system:
- 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:
- Created 6 years ago
- Comments:25 (8 by maintainers)
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.
Fixed in 1.0.8. Please verify. https://github.com/facebookincubator/create-react-app/releases/tag/v1.0.8