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、问题解决
后来我拿着错误去请教我的朋友,他一开始也没有找出错误,然后他找到了,原来少了条 " / ",如图
解决办法就是加上 " / ",如图
问题解决。