[英]NPM broken and reporting this error: npm ERR! 404
我正在運行npm update -g
並且得到
npm ERR! code E404
npm ERR! 404 Not found : default-html-example
npm ERR! 404
npm ERR! 404 'default-html-example' 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 ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/me/.npm/_logs/2018-10-25T22_24_12_353Z-debug.log
因此,當我運行./node_modules/.bin/eslin .
時,例如在任何項目中,我現在都可以在任何命令之后得到它./node_modules/.bin/eslin .
我得到了棉短絨的結果,但是在冗長的末尾總會出現此錯誤。
-更新-
經過進一步調查,我發現了這一點。
/usr/local/lib/node_modules/default-html-example
default-html-example -> /Users/me/learning/lynda_com_JavaScript_Essential_Training/MY_Ex_Files_JavaScript_EssT/Exercise_Files/default
這仍然是一個謎,它如何最終到那里?
查找並刪除該惡意文件夾/usr/local/lib/node_modules/default-html-example
解決了該問題。
但是,我仍然不確定該文件夾如何在該位置結束。 這是我的第一個教程項目文件夾之一。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.