Fix Not Found Package Errors with .staging Warnings on Npm Install

TL;DR: Clean the npm cache and the package-lock.json The other day I started to get ENOENT warning when running npm install like:

only to have the compilation failing with something like:

I’ve looked into it and the conclusion was that the error occurred because I’ve updated my node/npm version. Most answers recommend removing […]

Debug Electron in VS Code

TL;DR: You need to follow the server (electron) client (VS code debugger) approach. Be aware of OS specifics! So far, my approach towards development/debugging would be to write some code, test it, rewrite, test… all with a bunch of console.log() statements. That’s not efficient at all and since VS code has debugging capabilities, I’ve decided […]

Change Packages Paths in NodeJS

TL;DR: Edit %appdata%\npm\etc\npmrc and add prefix and cache entries to specify the locations where node puts packages. Every time I install a new framework/dev environment I have to look where they put files. Having a roaming profile is a pain and I need to make sure it doesn’t get too crowded. Otherwise, logging in takes […]

Scroll to top