pascalopitz / unoffical-sonos-controller-for-linux

An Electron based linux app for controlling your sonos system.
http://pascalopitz.github.io/unoffical-sonos-controller-for-linux/
MIT License
545 stars 49 forks source link

Unable to find dependency fs/promises #161

Closed jamesyoungman closed 2 years ago

jamesyoungman commented 2 years ago

Failure to build e48c644d790541c0811b66c5838b067b0bb8c047 :-

horizon:~/packages/sonos/unoffical-sonos-controller-for-linux$ npm install

> sonos-controller-unofficial@0.2.8 postinstall
> electron-builder install-app-deps

Error: Cannot find module 'fs/promises'
Require stack:
- /home/james/packages/sonos/unoffical-sonos-controller-for-linux/node_modules/builder-util/out/fs.js
- /home/james/packages/sonos/unoffical-sonos-controller-for-linux/node_modules/builder-util/out/util.js
- /home/james/packages/sonos/unoffical-sonos-controller-for-linux/node_modules/electron-builder/out/cli/cli.js
- /home/james/packages/sonos/unoffical-sonos-controller-for-linux/node_modules/electron-builder/cli.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/james/packages/sonos/unoffical-sonos-controller-for-linux/node_modules/builder-util/src/fs.ts:4:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/james/packages/sonos/unoffical-sonos-controller-for-linux/node_modules/builder-util/src/util.ts:24:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
npm ERR! code 1
npm ERR! path /home/james/packages/sonos/unoffical-sonos-controller-for-linux
npm ERR! command failed
npm ERR! command sh -c electron-builder install-app-deps

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/james/.npm/_logs/2021-10-14T08_41_08_043Z-debug.log
horizon:~/packages/sonos/unoffical-sonos-controller-for-linux$ npm install fs/promises
npm ERR! code 128
npm ERR! command failed
npm ERR! command git ls-remote ssh://git@github.com/fs/promises.git
npm ERR! ERROR: Repository not found.
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/james/.npm/_logs/2021-10-14T09_08_07_465Z-debug.log
jamesyoungman commented 2 years ago

At 379399 bytes, the npm debug log is too long to usefully paste here, please find it at https://pastebin.com/XCEHMmnq (expires in 6 months).

pascalopitz commented 2 years ago

You're using a wildly outdated version of node. Try 14+