Closed JayCBreak closed 3 years ago
In case anyone else comes across this, I re-read the error and just needed to add --scripts-prepend-node-path
to the end of the plug command. sudo npm run plug --scripts-prepend-node-path
gave me a proper install.
I wouldn't advise installing nodejs via snap, or using snap at all. For debian distros you can find the install method on https://www.github.com/nodesource/distributions/tree/master/README.md
I wouldn't advise installing nodejs via snap, or using snap at all. For debian distros you can find the install method on https://www.github.com/nodesource/distributions/tree/master/README.md
Ah! Thanks for the tip!
Describe the bug The powercord script crashes when attempting to install dependencies on Ubuntu 20.04.2 LTS
To Reproduce On Ubuntu 20.04.2 LTS:
sudo snap install node --classic --channel=14
npm i
npm run plug
The script should run into an error after the text "Installing dependencies, please wait..." with the error message:Expected behavior The proper installation of powercord
Desktop
Additional context
npm run unplug
provides a similar output, getting to "Installing dependencies, please wait..." and exiting with error:Error: Command failed: npm install --only=prod at checkExecSyncError (child_process.js:616:11) at execSync (child_process.js:652:15) at installDeps (/home/sysbreak/git/powercord/injectors/env_check.js:17:3) at module.exports (/home/sysbreak/git/powercord/injectors/env_check.js:60:9) at Object. (/home/sysbreak/git/powercord/injectors/index.js:8:23)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
status: 243,
signal: null,
output: [ null, Buffer(0) [Uint8Array] [], Buffer(0) [Uint8Array] [] ],
pid: 33794,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(0) [Uint8Array] []
}