node-sqlite3 icon indicating copy to clipboard operation
node-sqlite3 copied to clipboard

When 'npm install' > "ENOENT: no such file or directory, rename ..."

Open Hedva opened this issue 9 years ago • 40 comments

Still got this issue #866

sqlite3 version 3.16.0 npm version 5.5.1 node version 8.4.0

npm ERR! path /Users/jesse/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/Users/jesse/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates' -> '/Users/jesse/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/.delegates.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!     /Users/jesse/.npm/_logs/2017-10-23T12_04_19_469Z-debug.log

debug.log

706 verbose stack Error: ENOENT: no such file or directory, rename '/Users/jesse/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates' -> '/Users/jesse/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/.delegates.DELETE'
707 verbose cwd /Users/jesse
708 verbose Darwin 16.6.0
709 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "png-js"
710 verbose node v8.4.0
711 verbose npm  v5.5.1
712 error path /Users/jesse/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates
713 error code ENOENT
714 error errno -2
715 error syscall rename
716 error enoent ENOENT: no such file or directory, rename '/Users/jesse/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates' -> '/Users/jesse/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/.delegates.DELETE'
717 error enoent This is related to npm not being able to find a file.
718 verbose exit [ -2, true ]

Can't install or even uninstall packages

Hedva avatar Oct 23 '17 12:10 Hedva

still not fixed guys

mohitsharma000 avatar Jun 12 '20 08:06 mohitsharma000

You'd have to add that path to VirtualBox's shared folders if using Docker Toolbox or share that specific directory in Docker Desktop's file sharing settings.

ghost avatar Jun 12 '20 08:06 ghost

Hi, while installing server-lite getting these error npm ERR! code ENOENT npm ERR! syscall rename npm ERR! path C:\Users\risha\Desktop\Front End Web UI Frameworks and Tools Bootstrap 4\git-test\node_modules\lite-server npm ERR! dest C:\Users\risha\Desktop\Front End Web UI Frameworks and Tools Bootstrap 4\git-test\node_modules.lite-server.DELETE npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\risha\Desktop\Front End Web UI Frameworks and Tools Bootstrap 4\git-test\node_modules\lite-server' -> 'C:\Users\risha\Desktop\Front End Web UI Frameworks and Tools Bootstrap 4\git-test\node_modules.lite-server.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:

Be sure you run the terminal or powershell with admin rigths, and try again.

AngelSergio avatar Jul 03 '20 02:07 AngelSergio

Hey Deleting package-lock.json file and then installing package, fixed my problem

ayan8125 avatar Jul 11 '20 17:07 ayan8125

Make sure your npm server is stopped before firing the npm install comand.

dhruvkumarsood avatar Jul 13 '20 11:07 dhruvkumarsood

npm cannot rename this folder because it not real. You need create folder and try again! Create folder "delegates" in your path: /Users/jesse/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates

nhanchaukp avatar Jul 19 '20 13:07 nhanchaukp

Hey,

delete package-lock.json from Project and in command Line write "npm install" or make package-lock.json as Custom

ghost avatar Sep 10 '20 09:09 ghost

re create new react project. and old source copy & paste. I did, solved it.

yoonjong-park avatar Oct 31 '20 01:10 yoonjong-park

delete package-lock.json worked,tks

cym2050 avatar Dec 23 '20 03:12 cym2050

hi, while installing npm getting these error. I try deleted package-lock.json and node-modules, it not works

npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno ENOENT npm ERR! enoent Error while executing: npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT 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\Miskah\AppData\Roaming\npm-cache_logs\2021-02-09T06_37_02_915Z-debug.log

miskahalfiyyah avatar Feb 09 '21 06:02 miskahalfiyyah

Hi all, just delete package-lock.json file and then install package what you want all will works :-)

Thanks, I tried reinstalling node and many different ways but this worked for me.

UserQureshi avatar Mar 29 '21 17:03 UserQureshi

any of this suggestion doesn't work for me. I'm really depressed WTF fsjakldfjaslfghashfsa

mrbuynaa avatar Apr 13 '21 04:04 mrbuynaa

Hi together

I had this error in a little bit a different context, but in my case I had some broken symbolic links under node_modules/.bin and could figure this out with ls -lah in there where it shows them in red (in my bash). I think I messed up something up when trying to get my project up and running.

The .bin folder is hidden so maybe this is why you cant see them when deleting and reinstalling stuff. Hope this helps (to some degree).

I did remove the .bin folder, but offcouse the stuff that was broken I had to reinstall but It was mainly typescript and some linting stuff. So maybe search for broken links inside the node_modules or where ever the errors are pointing you too.

I already fixed it and can not verify if this works: https://unix.stackexchange.com/questions/34248/how-can-i-find-broken-symlinks This is a generic way of finding broken symlinks.

greetings

aschaepper avatar May 25 '21 13:05 aschaepper

us npm ci to clean and install all packages. and then install the package you want. it works for me this way

fdmxfarhan avatar Jul 19 '21 09:07 fdmxfarhan

I just deleted the node_modules folder and npm i again. Worked for me.

when first I deleted the package-lock.json,it couldn't works.Then, I delted the node_modules. Worked well The same worked for me , thanks

tripathi-tanishq avatar Aug 04 '21 19:08 tripathi-tanishq

I got this error because I had uninstalled the Visual Studio Build Tools, necessary to compile Node.js native modules. I fixed it by reinstalling Nodejs

JohnyIrush avatar Dec 01 '21 17:12 JohnyIrush

I don't know how it works currectly but, sometimes, exclusion of node_modules or package-lock.json works, sometimes not. I've to switch between windows cmd or linux kernel to run it good. I hope that npm team coud remove this error on next releases.

MiqueiasMaia avatar Jan 22 '22 01:01 MiqueiasMaia

ah it heppens to me when i have a virtual usb using google drive i was trying to install express

duckytutorials avatar Jan 28 '22 03:01 duckytutorials

I had to uninstall and install the npm again in order to fix this issue.

sim017 avatar Apr 05 '22 04:04 sim017

  1. Del yarn.lock
  2. Del Moduels
  3. remove esllint from ur devDependencies
  4. run yarn again

After many many trys this works fine for me.

alexanderschndr avatar May 02 '22 14:05 alexanderschndr