繁体   English   中英

无法安装 npm install @here/maps-api-for-javascript --save

[英]Can not install npm install @here/maps-api-for-javascript --save

I can not install Maps API for node.js, according to this manual https://developer.here.com/documentation/maps/3.1.20.0/dev_guide/topics/get-started-bundling.html

PS K:\Gran-canar\NODE-HERE\first-project> npm install @here/maps-api-for-javascript --save npm ERR! 代码 E404 npm 错误! 404 未找到 - 获取http://registry.npmjs.org/@here%2fmaps-api-for-javascript - 未找到 npm ERR。 404 npm ERR, 404 '@here/maps-api-for-javascript@latest' is not in the npm registry, npm ERR, 404 You should bug the author to publish it (or use the name yourself.) npm ERR! 404 npm 错误! 404 请注意,您也可以从 npm 错误安装! 404 压缩包、文件夹、http url 或 git url。

npm ERR:此运行的完整日志可在以下位置找到:npm ERR。 C:\Users\Alvares\AppData\Roaming\npm-cache_logs\2020-12-04T03_04_24_998Z-debug.log PS K:\Gran-canar\NODE-HERE\first-project>

这似乎是一篇旧帖子,因此帮助 OP 可能为时已晚,但从您的错误来看,您似乎错过了运行此行:

npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/

由于npm install @here/anything不应该检查HTTP://registry.npmjs.org/模块文件,因为它们在那里不存在。

对我来说这有效

npm install @here/maps-api-for-javascript --registry=https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM