Closed MatchLemon closed 5 years ago
@MatchLemon what version of Node are you running? Did you try lts/carbon v8.11.x? How did you install this version of TileMill?
@MatchLemon what version of Node are you running? Did you try lts/carbon v8.11.x? How did you install this version of TileMill?
my node is v8.15.0. my TileMill is master branch, run npm install & npm start
I just attempted a fresh install on a VM instance of Ubuntu 18.04.2 LTS, with Node v8.15.1 and npm v6.4.1 and it installed and ran as expected.
To install, I followed the Quick Install directions on the README:
git clone https://github.com/tilemill-project/tilemill.git
cd tilemill
npm install
npm start
Don't use the older Ubuntu installation instructions, those are for pre v1.0.0, before the latest upgrade.
@MatchLemon I get the same error if I didn't remove previously installed node_modules and do a clean install:
From your local tilemill
directory:
rm -rf node_modules
npm install
Can you please retest and report back?
I meet this problem too.But I don't want to remove the node_modules,I wiil install in a offline machine,so I can't download the node packages online. @csytsma Is there another way to solve my problem?
@younghappy, removing the node_modules directory in the project folder is typically a requirement when updating a node project package. You don't need to remove your global node_modules directory, just your ../tilemill/node_modules directory. You'll need to do this every time you upgrade TileMill, then run npm install
again, to repopulate it with any new dependencies.
I get the error when I run ./index.js my os is CentOS 7 mapnik@3.7.2