簡體   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