Whenever I try to install nodemon as dev-dependency, It gives me some errors, I do not know what to do. I tried npm install nodemon --save-dev but it gives me the same errors
I disabled virus protection, run cmd as administrator, but the same problem again
PS D:\My documents\My programs\akademind\nodejs-complete-guide> npm install nodemon --save-dev
npm WARN nodejs-complete-guide#1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.9 (node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: EBUSY: resource busy or locked, rename 'D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\.staging\fsevents-c44863db\node_modules\abbrev' -> 'D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\.staging\abbrev-fa5cb67d'
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\expand-brackets\node_modules\debug
npm ERR! dest D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\undefsafe\node_modules\debug
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\expand-brackets\node_modules\debug' -> 'D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\undefsafe\node_modules\debug'
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\Farrux\AppData\Roaming\npm-cache\_logs\2019-09-15T13_53_36_783Z-debug.log
Try to perform the following steps:
Delete package-lock.json file
Delete node_modules folder and
Install packages by running npm i.
Related
The code throws the same error when npm install or npm install --save is called.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/andyc/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/andyc/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/andyc/.npm/_logs/2021-11-04T02_19_18_554Z-debug.log
any idea why this is happening?
It seems you don't have package.json. So, you need to follow these steps, for every new project
Step: 1
npm init --yes
Step: 2
npm i --save 'packagename'
Step: 3 - When you delete and re-install packages by deleting node_modules, run this:
npm i/install
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!
namish#namishs-mbp ~ % npm install
npm WARN saveError ENOENT: no such file or directory, open '/Users/namish/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/namish/package.json'
npm WARN namish No description
npm WARN namish No repository field.
npm WARN namish No README data
npm WARN namish No license field.
up to date in 0.727s
found 0 vulnerabilities
I'm trying to run npm start after this. When I do, this is what happens:
namish#namishs-mbp ~ % npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/namish/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/namish/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/namish/.npm/_logs/2020-08-15T01_15_06_560Z-debug.log```
I don't know why this says this. Is there any way to fix it?
Check the file location of your package.json and try again or use npm init to create one
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
When I try to run this command adonis install #adonisjs/validator it shows this error
ERROR Command failed: npm i --save #adonisjs/validator
npm WARN ajv-keywords#3.1.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package standard is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.1.3 (node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, rename 'E:\adonisone\familybazar\node_modules\.staging\fsevents-dfd3107e\node_modules\asynckit' -> 'E:\adonisone\familybazar\node_modules\.staging\asynckit-d5ec6aa3'
npm ERR! path E:\adonisone\familybazar\node_modules\#adonisjs\generic-exceptions\node_modules\node-exceptions
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'E:\adonisone\familybazar\node_modules\#adonisjs\generic-exceptions\node_modules\node-exceptions' -> 'E:\adonisone\familybazar\node_modules\#adonisjs\generic-exceptions\node_modules\.node-exceptions.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\JOKER\AppData\Roaming\npm-cache\_logs\2018-03-06T00_37_25_769Z-debug.log
I also tried to clean the npm cache. Any idea what's wrong?