dem2terrain icon indicating copy to clipboard operation
dem2terrain copied to clipboard

npm ERR! path /dem2terrain/node_modules/gdal-async

Open DXnima opened this issue 2 years ago • 1 comments

npm install出现以下错误是什么原因:

npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm ERR! code 2
npm ERR! path /dem2terrain/node_modules/gdal-async
npm ERR! command failed
npm ERR! command sh -c -- node-pre-gyp install --fallback-to-build -j max && echo 'If you are using gdal-async, please do not forget that I am living below the poverty line because of the extortion.
npm ERR! sh: 1: Syntax error: Unterminated quoted string

环境:Ubuntu 20.04 | Node 16 | GDAL 3.5.2

DXnima avatar Nov 15 '23 15:11 DXnima

开启代理解决:

export HOSTIP=$(cat /etc/resolv.conf | grep "nameserver" | cut -f 2 -d " ")
export http_proxy="http://$HOSTIP:7890"
export https_proxy="http://$HOSTIP:7890"
export all_proxy="socks5://$HOSTIP:7890"

DXnima avatar Dec 02 '23 12:12 DXnima