tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.12k stars 527 forks source link

Mac M1 Error: Install of TileMill failed #2759

Closed pankus closed 2 years ago

pankus commented 2 years ago

Unfortunately, I can not install Tilemill on my new Mac

2022-09-02T01_15_42_262Z-debug-0.log

csytsma commented 2 years ago

Incorrect version of Node being used.

Node.js: (earlier Node.js versions may work, but are not tested)

From your install log: 2036 error node-pre-gyp info using node@17.8.0 | darwin | arm64

Set your node version using nvm (or similar) and retry. Closing bug.

pankus commented 2 years ago

the script ~/tilemill/utils/installtilemill.sh indeed try to install node v8.17.0, but the terminal says "ERROR: npm is known not to run on Node.js v8.17.0". After that, I presume it uses node@17.8.0

Well, if I manually install node 8.15 ( nvm install v8.15.0 ) I can use the command "npm install" but the installation fail with the following message:

amigo@MBP tilemill % npm install
npm WARN tilemill@1.0.1 No license field.

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t git://github.com/florianf/bones.git
npm ERR!
npm ERR! undefined
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/amigo/.npm/_logs/2022-09-03T03_46_08_346Z-debug.log