File size: 1,944 Bytes
61d39e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# First Run Issues

## "Cannot find package '@heyputer/backend'"

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           ┃

┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

```

1. Ensure you have run `npm install`.
2. [Install build essentials for your distro](#installing-build-essentials),
   then run `npm install` again.

## Installing Build Essentials

### Debian-based distros

```

sudo apt update

sudo apt install build-essential

```

### RHEL-family distros (Fedora, Rocky, etc)

```

sudo dnf groupinstall "Development Tools"

```

### "I use Arch btw"

```

sudo pacman -S base-devel

```

### Alpine

If you're running in Puter's Alpine image then this is already installed.

```

sudo apk add build-base

```

### Gentoo

You know what you're doing; you just wanted to see if we mentioned Gentoo.

## "Could not load the "sharp" module using the freebsd-x64 runtime"

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

```