Scenario: You see the following output:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Cannot find package '@heyputer/backend' ┃
┃ 📝 this usually happens if you forget `npm install` ┃
┃ Suggestions: ┃
┃ - try running `npm install` ┃
┃ Technical Notes: ┃
┃ - @heyputer/backend is in an npm workspace ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
- Ensure you have run
npm install. - Install build essentials for your distro,
then run
npm installagain.
sudo apt update
sudo apt install build-essential
For distros using dnf5 (Fedora 41+):
sudo dnf install @development-tools
Otherwise:
sudo dnf groupinstall "Development Tools"
sudo pacman -S base-devel
If you're running in Puter's Alpine image then this is already installed.
sudo apk add build-base
You know what you're doing; you just wanted to see if we mentioned Gentoo.
In order to get it to work on FreeBSD, you will need to build sharp from source and link it to the project.
pkg install vips
git clone --depth=1 https://github.com/lovell/sharp.git
cd sharp
yarn install
sudo npm link
After npm install you can link the prebuilt module
# cd puter
# npm install
npm link sharp
npm start