发表于: 2019-08-20 23:30:13

0 399


今日完成:

1 同时打开两个端口使用




今日收获:

1  学会了如何通过git分支了解学习代码

每次下载过来之后,就直接使用npm i加载ng-moudle即可实现效果


2  今天在新建angular项目的时候,一直报错,每次都是卡在生成ng-moudle上面,

刚开始还以为是编译器的问题,因为我同时打开两个编译器,后来关了也不行,

然后又使用npm i 来下载,还是行不通

npm ERR! Unexpected end of JSON input while parsing near '...Dependencies":{"buffe'
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\asus\AppData\Roaming\npm-cache\_logs\2019-08-20T15_22_56_956Z-debug.log
Package install failed, see above.


后来在谷歌的时候发现是缓存的问题,,然后用谷歌查到的方法,清除缓存

PS E:\localhost> npm cache clean --force
npm WARN using --force I sure hope you know what you are doing.


再次新建就成功了








返回列表 返回列表
评论

    分享到