Error while installing React – "Cannot find module 'block-stream'

Issue This is the line executed: PS E:\React_js> npx create-react-app React_js node:internal/modules/cjs/loader:942 throw err; ^ The error tells cannot find module: Error: Cannot find module ‘block-stream’ Require stack: at Module._resolveFilename (node:internal/modules/cjs/loader:939:15) at Module._load (node:internal/modules/cjs/loader:780:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18)

Continue reading

How to install Laravel Vite?

Issue The Laravel Vite Doc sais to run: npx apply laravel:vite –ignore-existing inside your project root to install vite in your laravel project. When I try to do that in a freshly installed laravel project it shows this: zsh:1: command

Continue reading

npx command not found

Issue I am working with webpack and I need to execute ./node_modules/webpack/bin/webpack.js using npx. npx webpack would run the webpack binary (./node_modules/webpack/bin/webpack), but each time I execute npx webpack I get bash: npx: command not found. I am using: node:

Continue reading

Cannot create a new React application with create-react-app

Issue I encountered this problem when creating a new React application (after executing the npx create-react-app my-app command): ➤ YN0000: ┌ Resolution step node:internal/process/promises:246 triggerUncaughtException(err, true /* fromPromise */); ^ _r [RequestError]: read ECONNRESET at ClientRequest.<anonymous> (/home/aldaspan/.yarn/releases/yarn-3.1.1.cjs:154:14361) at Object.onceWrapper (node:events:510:26)

Continue reading