使用 npm 安装 OpenLayers - 找不到数据包

OpenLayers installation using npm - packet not found

我正在尝试使用 npm 在我的 Express 项目中安装 openlayers 来创建自定义构建,但我收到以下错误:

npm ERR! 404 Not Found
npm ERR! 404 
npm ERR! 404 'mapbox/vector-tile' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'openlayers'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "openlayers"
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code E404
npm ERR!
npm ERR! not ok code 0

我尝试更新 npm 并手动安装 vector-tile 但没有帮助。

我做错了什么?

编辑:调用 npm install ol 而不是 npm install openlayers 时出现同样的错误。

使用更新版本的 node 和 npm,最好是 LTS 版本