Relative Content

Tag Archive for reactjsnode.js

I am trying to create react app and getting this error

‘CALL “C:Program Filesnodejsnode.exe” “C:Program Filesnodejsnode_modulesnpmbinnpm-cli.js” prefix -g’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ENOENT
npm ERR! syscall spawn C:Program FilesJavajre-1.8bin
npm ERR! path C:Users2273297
npm ERR! errno -4058
npm ERR! enoent spawn C:Program FilesJavajre-1.8bin ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

How to get react installed

Hello I am currently trying to get React library. Node.js is installed on my computer currently. When I enter the code npx create-react-app project-name to get react, it doesn’t work. I get the following:
C:UsersPaul>npx create-react-app my-app
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:UsersPaulAppDataRoamingnpm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat ‘C:UsersPaulAppDataRoamingnpm’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

how to send ID of product in request?

I want to rate product, but when using postman its working but when hitting request on frontend by axios error showing that id is unefined which I am sending by request.params.