- 博客(3)
- 收藏
- 关注
原创 异步请求:对于promise与async await的使用场景
建议,多数时候利用async await代替promise,主要是提高了代码的可读性与观赏性(个人习惯)但是也要清楚,很多时候promise的不可替代性,这边后面出现案例再详记吧。使用方法就是在每次await调用的时候 (也贴一下代码吧)
2022-11-09 15:39:20
266
原创 关于npm常见错误总结
1.Please restart this script from an administrativePowerShell!问题场景:在cmd窗口输入npm install --global--production windows-build-tools报错Please restart this script from anadministrativePowerShell!,解决方法:以管理员身份运行cmd窗口2.path xxx/node_modules/node-sass(c...
2022-02-18 15:20:15
2692
原创 npm install报错command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
执行npm install 报错信息12月10日 20:27npm ERR! code 1npm ERR! path C:\wamp64\www\kyy2.0\xgwx2\node_modules\imagesnpm ERR! command failednpm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuildnpm ERR! gyp info it worked if it ends with oknpm
2021-12-14 11:53:16
27588
6
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人