I can't run the angular app , I get this error - node.js

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\User\Documents\GitHub\angular-11-spring-boot-jwt-authentication\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2021-08-09T10_56_11_734Z-debug.log
Error

Delete node_modules folder and re-install all your dependencies using npm install
Ensure that you have a stable version of Node
Run npm start/ng serve from the angular folder

Related

Trouble with installing Nodemon on Windows machine

I have been running into some issues while trying to install nodemon globally.
here's what it looks like:
$ npm i -g nodemon
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\krishnna sarrdah\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\krishnna sarrdah\AppData\Roaming\npm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\krishnna sarrdah\AppData\Local\npm-cache\_logs\2021-01-22T16_04_35_377Z-debug.log
Your node installation is slightly out of date, I solved this problem with this
repair Node installation
npm update -g

I cannot get NPM Start to work in Visual Code Studio; It gives me an errors I cannot understand

Here's how it goes:
PS C:\xampp\htdocs\travel-react> npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\xampp\htdocs\travel-react\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\xampp\htdocs\travel-react\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\18652\AppData\Roaming\npm-cache\_logs\2020-12-19T05_26_03_774Z-debug.log
How do I fix this? Thanks!
It seems to be a cache problem,try to delete those folders:
C:\Users\yourusername\AppData\Roaming\npm\ and C:\Users\yourusername\AppData\Roaming\npm\
then try npm install -g and try again
Create package.json file using npm init,
You can read more about package.json here,
https://medium.com/#krishankantsinghal/package-json-understanding-it-for-your-nodejs-reactjs-angularjs-or-any-javascript-app-which-use-5a18de90d33

can't install node express on windows 10

I am trying to set up a node express development environment on windows 10. I have successfully installed node.js and npm but when I try to install express using:
npm init
npm install express
I get the following error:
npm WARN myapp#1.0.0 No description
npm WARN myapp#1.0.0 No repository field.
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path C:\Users\mi292519\Dropbox\selfLearning\nodeJs\myapp\node_modules\bytes
npm ERR! dest C:\Users\mi292519\Dropbox\selfLearning\nodeJs\myapp\node_modules\.bytes.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\mi292519\Dropbox\selfLearning\nodeJs\myapp\node_modules\bytes' -> 'C:\Users\mi292519\Dropbox\selfLearning\nodeJs\myapp\node_modules\.bytes.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mi292519\AppData\Roaming\npm-cache\_logs\2020-10-07T11_17_07_099Z-debug.log
I tried removing node_modules and package.json also tried deleting npm-cache and npm install again but none of that worked
any help would be appreciated
Thanks!

I can't run npm start

I have created successfuly created a react app using npx create-react-app but when I type npm start, it flags error
npm start
The error is:
npm ERR! path C:\Users\Gerald\Documents\profile\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Gerald\Documents\profile\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Gerald\AppData\Roaming\npm-cache\_logs\2019-07-19T08_31_34_664Z-debug.log
You first need to navigate to the folder where you created your app.

How do I install npm dependencies from package-lock.json only?

I've run commands like npm install js-yaml and now that has generated a package-lock.json file.
How can I then use this file to reinstall the dependencies?
chris#instance-1:~/fuck3$ npm ci
npm ERR! path /home/chris/fuck3/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/home/chris/fuck3/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/chris/.npm/_logs/2019-07-11T17_31_26_335Z-debug.log
chris#instance-1:~/fuck3$ ls
index.js job.yaml package-lock.json

Resources