簡體   English   中英

npm嘗試安裝模塊時拋出ENOENT錯誤

[英]npm throws ENOENT error when trying to install module

該模塊的文檔告訴我運行npm install --save mapbox-gl但是當我嘗試這樣做時,我收到以下錯誤。

npm ERR! addLocal Could not install 
/Users/marchorne/conichi/cmc/node_modules/mapbox-gl/src/style-spec
npm WARN deprecated point-geometry@0.0.0: This module has moved: please 
install @mapbox/point-geometry instead
npm WARN deprecated vector-tile@1.3.0: This module has moved: please 
install @mapbox/vector-tile instead
npm ERR! Darwin 16.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "mapbox-gl"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! path /Users/marchorne/conichi/cmc/node_modules/mapbox-gl/src/style-spec
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open 
'/Users/marchorne/conichi/cmc/node_modules/mapbox-gl/src/style-spec'
npm ERR! enoent ENOENT: no such file or directory, open 
'/Users/marchorne/conichi/cmc/node_modules/mapbox-gl/src/style-spec'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/marchorne/conichi/cmc/npm-debug.log

我的系統是MacOS Sierra 10.12.5節點版本:v6.10.0 NPM版本:v3.10.10

v0.39似乎已損壞,請參見https://github.com/mapbox/mapbox-gl-js/issues/5025

您可以嘗試使用npm install --save mapbox-gl@0.38.0安裝以前的版本

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM