React or NPM issue? - reactjs

Good Evening All! Hope today was great coding day for everyone. Quick question..
After running the “npx create-react-app” command I get the following error message in my terminal
Cannot find module ‘./internal/Observable’ Require stack:
/Users/FInnocent/node_modules/rxjs/index.js
/Users/FInnocent/node_modules/inquirer/lib/ui/prompt.js
/Users/FInnocent/node_modules/inquirer/lib/inquirer.js
/Users/FInnocent/node_modules/create-react-app/createReactApp.js
/Users/FInnocent/node_modules/create-react-app/index.js
I’m running version v12.16.2 of node and 6.14.4 of npm.
I’ve tried searching for this error in StackOverlow but no luck. I also tried to install this module by running
npm install ./internal/Observable” and get the following error:
npm ERR! Could not install from “internal/Observable” as it does not contain a package.json file.
Any ideas on what’s wrong and how I can fix it?

Found a solution actually, I ran the following
npm install rxjs
And i’m all set now

Related

npm error while installing package in reactjs

When I try to install any npm package, I get the following error. And the installation gets stuck.
I've pasted the error below
Error msg:
This version of npm is compatible with lockfileVersion#1, but package-lock.json was generated for lockfileVersion#2. I'll try to do my best with it!
Help me to solve this problem. Thanks in Advance.
The error message you mentioned is due to the fact that you are running an older version of npm. You are probably on v5 or v6 while your package-lock.json was generated with v7+.
However, that message is usually a warning, and not a final error. Would double check to see if you have other error messages as well.
More details for package-lock.json versions at: https://docs.npmjs.com/cli/v8/configuring-npm/package-lock-json#lockfileversion

Error while running ‘hello-react’ program in react.js

With lots of issues while installing react.js finally when I thought that issues were resolved and everything is in a good place. I found this as a heartache issue.
Error description Image for reference:
Whenever you see this error, it means that something went wrong when you installed the dependencies.
The proper method to fix this error and install all the dependencies again can be found in this answer.
A quick workaround can be to install this specific dependency again using the following npm command:
npm intall react-scripts start
This will help you solve this issue. I still recommend you to install all the dependencies again so that you won't run into such issues later on.
Please mark this answer as accepted if it solves your issue.
Please execute the below-mentioned command.
npx i -g create-react-app
It takes few minutes and displays a message similar to below
We suggest that you begin by typing:
cd your-app-name
yarn start
Happy hacking!
cd into the your-app-name folder and execute npm start
Additional Reference: https://reactjs.org/docs/create-a-new-react-app.html

Why there occurs an error while I tried to install packages using npm

I am working in react js . While installing packages I got the following error as shown in the image. I tried many ways but nothing becomes right. How can I solve this issue?IMAGE OF ERROR
you havn't installed python yet
So install python !
Still problem persist then try
npm cache clean --force

Codespaces (online.visualstudio.com) - Cannot find module 'tslint/lib/tsLintCli.js'

I am developing on Codespaces (online.visualstudio.com) but got an error as below. Note: I've removed node_modules and npm install again a few time but doesn't resolve...also it worked OK in my local environment...my problem is I dont know how to fix it on Codespaces. Does everyone help me an advice?
node: v12.16.3
npm: 6.14.4
Running Linter
failed: Error: Cannot find module 'tslint/lib/tsLintCli.js'
Require stack:
/home/codespace/workspace/
/home/codespace/workspace

Angular-phonecat getting started (Bower install) fail

my problem is described in the following image:
The main problem is that im getting a: Bower ENOENT no bower.json present error and as you can see in the image (second command) the file is actually present. So ive been trying to find what actually bower install does and havent found it in the NPM documentation and Git documentation as well
Also, in the research ive done some forums suggest installing bower globally and it hasnt worked
Since i've been googling for about 3 nights looking for somebody with the same problem and havent found anybody else with the problem I started wondering about if I changed any environment variable. So i uninstalled node.js and Git and then reinstalled both programs without any change in the result
Hope somebody can help me with this, thanks in advance
Bower is a package manager for HTML http://bower.io/. 'bower install' will download all the packages listed in bower.json and add them to a folder called 'bower_components'
You must have bower install globally via
npm install -g bower
To get a list of NPM packages installed successfully global use:
npm list -g
Having a look at the github issues of that Repository(Angular-phonecat) theres alot of issues related to bower(https://github.com/angular/angular-phonecat/search?q=bower&type=Issues&utf8=%E2%9C%93), which is strange because bower is not that complicated. Have you looked through any of those fixes.

Resources