These dependencies were not found: * @components/login in ./src/router/index.js 解決方法
1、問題產生
朋友給我一個前端模板,讓我在裏面寫項目,但是我不知道他的模板什麼意思,然後就出現了**These dependencies were not found: * @components/login in ./src/router/index.js **這個錯誤
2、解決過程
終端讓我 To install them, you can run: npm install --save @components/login @components/register我猜是沒有那個組件,所以照着的提示終端安裝了一下,但是安裝失敗,如圖,我也上網找了,但是還是沒有解決。
3、問題解決
後來我拿着錯誤去請教我的朋友,他一開始也沒有找出錯誤,然後他找到了,原來少了條 " / ",如圖
解決辦法就是加上 " / ",如圖
問題解決。