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
Related
qasimnoman#Qasims-MacBook-Pro ~ % npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/qasimnoman/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/qasimnoman/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! /Users/qasimnoman/.npm/_logs/2022-04-08T12_59_39_855Z-debug-0.log
Looks like you have no package.json in your current directory.
Are you in the right directory ?
I'm getting the following error on npm install:
C:\projects\projects>npm install npm ERR! code ENOENT npm ERR! syscall
open npm ERR! path C:\projects\projects/package.jsonstrong text
npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or
directory, open 'C:\projects\projects\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\Local\npm-cache_logs\2022-02-12T15_43_40_855Z-debug-0.log
It appears there is no package.json in your directory C:\projects\projects
Should it contain an existing node.js project or do you want to initialize a new project?
If so, use:
npm init
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
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
$npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/gatua/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/gatua/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/gatua/.npm/_logs/2020-05-22T12_23_50_208Z-debug.log
Simply you are running npm command outside of your project folder. If it's not the case. first, you need to create package.json file by running npm init command.