2017-07-24 138 views
0

該模塊的文檔告訴我運行npm install --save mapbox-gl,但是當我嘗試此操作時,我收到以下錯誤。npm嘗試安裝模塊時拋出ENOENT錯誤

npm ERR! addLocal Could not install 
/Users/marchorne/conichi/cmc/node_modules/mapbox-gl/src/style-spec 
npm WARN deprecated [email protected]: This module has moved: please 
install @mapbox/point-geometry instead 
npm WARN deprecated [email protected]: 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的塞拉利昂10.12.5 節點版本:v6.10.0 NPM版本:v3.10.10

回答