Blink1Control2
Blink1Control2 copied to clipboard
Error: Cannot find module '/home/marek/Downloads/Blink1Control2/node_modules/buffer-crc32/index.js'. Please verify that the package.json has a valid "main" entry
$npm i
npm WARN deprecated [email protected]: Support has ended for 9.x series. Upgrade to @latest
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm notice
npm notice New major version of npm available! 8.19.3 -> 9.2.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.2.0
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code 1
npm ERR! path /home/marek/Downloads/Blink1Control2/node_modules/electron
npm ERR! command failed
npm ERR! command sh -c -- node install.js
npm ERR! node:internal/modules/cjs/loader:417
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: Cannot find module '/home/marek/Downloads/Blink1Control2/node_modules/buffer-crc32/index.js'. Please verify that the package.json has a valid "main" entry
npm ERR! at tryPackage (node:internal/modules/cjs/loader:409:19)
npm ERR! at Module._findPath (node:internal/modules/cjs/loader:651:18)
npm ERR! at Module._resolveFilename (node:internal/modules/cjs/loader:1025:27)
npm ERR! at Module._load (node:internal/modules/cjs/loader:885:27)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1105:19)
npm ERR! at require (node:internal/modules/cjs/helpers:103:18)
npm ERR! at Object.<anonymous> (/home/marek/Downloads/Blink1Control2/node_modules/yauzl/index.js:4:13)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1218:14)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1081:32) {
npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! path: '/home/marek/Downloads/Blink1Control2/node_modules/buffer-crc32/package.json',
npm ERR! requestPath: 'buffer-crc32'
npm ERR! }
npm ERR!
npm ERR! Node.js v19.2.0
npm ERR! A complete log of this run can be found in:
npm ERR! /home/marek/.npm/_logs/2022-12-09T08_20_12_571Z-debug-0.log
$node --version
v19.2.0
/home/marek/.npm/_logs/2022-12-09T08_20_12_571Z-debug-0.log: log.txt
I've noticed errors like this more in node projects (not just Blink1Control2). Perhaps npmjs.com is returning bad bundles?
Try doing npm install
again and it should fill in the modules it couldn't install.
I just tried a fresh checkout and npm install
on both node v16 and v19 and both installed