在維護別人的項目的時候,在項目文件夾中安裝npm install模塊的時候,報錯以下:前端
npm ERR! path D:\ShopApp\node_modules\fsevents\node_modules\abbrev
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'D:\ShopApp\node_modules\fsevents\node_modules\abbrev'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Program Files\nodejs\node_cache\_logs\2018-08-01T02_35_44_300Z-debug.log
複製代碼
####解決辦法:node
將no such file or directory,access中指明的文件路徑中的node_modules刪除: rm -r node_modules或者直接在在項目文件夾中刪除npm
而後再從新npm install 安裝 編程
從新npm install 安裝結果以下:bash
這個時候就能夠啓動項目,打開運行項目了ui
原文做者:祈澈姑娘 技術博客:www.jianshu.com/u/05f416aef…this
90後前端妹子,愛編程,愛運營,愛折騰。 堅持總結工做中遇到的技術問題,堅持記錄工做中所所思所見,歡迎你們一塊兒探討交流。spa