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!
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
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 VERSION - 6.13.4
NODE VERSION - v12.16.1
I am trying to install npm i react-native-router-flux --save
and getting error
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path G:\reactnative\Testing\node_modules\babel-plugin-react-transform
npm ERR! dest G:\reactnative\Testing\node_modules\.babel-plugin-react-transform.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'G:\reactnative\Testing\node_modules\babel-
plugin-react-transform' -> 'G:\reactnative\Testing\node_modules\.babel-plugin-react-transform.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\Bhaman\AppData\Roaming\npm-cache\_logs\2020-03-29T08_40_57_081Z-debug.log
How can i solve this error any idea suggest me
i am checking this ANSWER link but getting no solutions
Thanks
ERROR SOLVED
using this command
react-native start --reset-cache --verbose
DOCUMENT LINK
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