Skip to content

Commit ce90685

Browse files
authored
Added how to workaround a common pupeteer issue
1 parent 9227876 commit ce90685

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ osmsm --help
1616
osmsm -g '{"type":"Point","coordinates":[-105.01621,39.57422]}' > map.png
1717
```
1818

19+
* note: if you have this error trying to install globally `Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/osm-static-maps/node_modules/puppeteer/.local-chromium'`, it's caused by this pupeteer issue https://github.com/puppeteer/puppeteer/issues/367, you can workaround by installing globally with the `unsafe-perm` flag:
20+
21+
```bash
22+
sudo npm i -g osm-static-maps --unsafe-perm=true
23+
```
24+
1925
### 2. nodejs library
2026

2127
```bash

0 commit comments

Comments
 (0)