Why can't find package required on the "npm" registry

I have problems running my web app using this tutorial video React Native Web Full App Tutorial - Build a Workout App for iOS, Android, and Web in react-native. I've been searching a lot for an answer but there is no accurate one yet that solves my issue.

I downloaded the app from here: git repo.

Try to use:

$ yarn
$ yarn install
$ npm install
$ npm config set @icons:registry https://registry.npmjs.org/
$ rm -rf node_modules
$ npm i https://github.com/Qix-/node-error-ex
$ curl 'https://registry.yarnpkg.com/@types/node/-/node-9.4.2.tgz'

but nothing seems to work, I keep getting this error.

error Couldn't find package "@wow/[email protected]" required by "@wow/[email protected]" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Couldn't find package "@wow/[email protected]" required by "[email protected]" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:721:66)
    at new MessageError (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:750:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:36539:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:310:30)
    at /usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:323:13
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Or any steps I need to follow to run this app. Since I want to download the app and edit the body content.


Solution 1:

I tried to download and test it myself and it worked normally.

Clone it again and follow these steps:

#After cloning enter the folder
cd react-native-web-series
#install all dependencies
yarn install
#Navigate to the web folder
cd packages/web
#start the app
yarn start

Ps. : If a project is using yarn is not a good ideia to run npm commands, do not mix those two

Solution 2:

In my case, the reason was the .npmrc file.

You can rename this file

mv ~/.npmrc ~/.npmrc2

npx create-react-app my-app

and rename it back after the installation.

mv ~/.npmrc2 ~/.npmrc