Termst icon indicating copy to clipboard operation
Termst copied to clipboard

Why can't I build from source?

Open archibaldh opened this issue 3 years ago • 5 comments

I tried loading it through loading an unpacked extension in the chrome extension menu but this didn't work. Is there a reason for this and can it be fixed?

archibaldh avatar May 15 '22 10:05 archibaldh

Please tell the steps you executed in detail.

Include details such as Operating System, etc.

insomnia-creator avatar May 15 '22 10:05 insomnia-creator

I get this when trying to build the extention:

$ ./build.sh
yarn install v1.22.15
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying... # Ignore these
info There appears to be trouble with your network connection. Retrying... # Ignore these
error [email protected]: The engine "node" is incompatible with this module. Expected version ">= 14". Got "12.22.5"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
yarn run v1.22.15
$ vue-cli-service build
/bin/sh: 1: vue-cli-service: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
cp: cannot create regular file 'dist/': Not a directory
mv: cannot stat 'dist': No such file or directory
yarn run v1.22.15
$ crx3 pack extension -o Termst.crx
/bin/sh: 1: crx3: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Your extension is ready to be installed in Google Chrome! ✨

I'm running Raspberry Pi OS (based on Debian), on a Raspberry Pi 4.

I suggest adding some logic to your build script, like, if yarn install fails, exit the script..

Crilum avatar May 21 '22 05:05 Crilum

@archibowl You can install @insomnia-creator's prebuilt crx, for now.

Crilum avatar May 21 '22 05:05 Crilum

You can read what is written: info There appears to be trouble with your network connection. Retrying... # Ignore these info There appears to be trouble with your network connection. Retrying... # Ignore these

It probably hasn't installed the node_modules. Please check by seeing if there is a directory called node_modules.

insomnia-creator avatar May 21 '22 09:05 insomnia-creator

You can read what is written: info There appears to be trouble with your network connection. Retrying... # Ignore these info There appears to be trouble with your network connection. Retrying... # Ignore these

That doesn't matter, it just tries again.

It probably hasn't installed the node_modules. Please check by seeing if there is a directory called node_modules.

This was the problem. Thank you.

Crilum avatar May 21 '22 15:05 Crilum