为什么每次我尝试在我的计算机上安装node-mapnik时都会收到此错误消息。我使用Windows 8.1 x64。
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Adi Arta Wibawa\
\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "mapnik@3.
x"
npm ERR! node v4.1.0
npm ERR! npm v3.3.3
npm ERR! code ELIFECYCLE
npm ERR! mapnik@3.4.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mapnik@3.4.7 install script 'node-pre-gyp install --fallb
ack-to-build'.
npm ERR! This is most likely a problem with the mapnik package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls mapnik
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\WebDev\ProjectOne\npm-debug.log
我该怎么做才能解决这个问题?
答案 0 :(得分:0)
问题可能在于使用最新版本的Node.js. 试试这个https://nodejs.org/dist/v0.10.36/node-v0.10.36-x86.msi