cnpm手动同步npmJuly 19, 2022 · One min read需求场景 在自己发布一个npm包之后,如果立即使用cnpm安装,则无法找到该安装包,因为还没有同步过来,总不能慢慢等cnpm同步。好在cnpm有个手动同步的工具。 解决方案 https://npm.taobao.org/sync/+ 包名https://npmmirror.com/sync/+包名
/etc/rc.local,/ect/profile.d/,.bash_profile的区别July 17, 2022 · 2 min read主要区别 /etc/rc.local 最先执行,在登录之前执行 设置开机启动任务,应该放在rc.local中执行,它只会在系统启动时执行一次。 /etc/profile.d/ 其次执行,需要登录,针对所有用户 设置环境变量的脚本,可以放在profile.d目录下面,但开机执行任务不应该放在profile.d目录下,因为每次登陆都会执行profile.d目录下的文件,会导致重复执行 .bash_profile 最后执行,需要登录,只针对当前用户 开机脚本执行顺序 通过/boot/vm进行启动 vmlinuz init /etc/inittab 启动相应的脚本,并且打开终端 rc.sysinit rc.d(里面的脚本) rc.local 启动login登录界面 login 在用户登录的时候执行sh脚本的顺序,每次登录的时候都会完全执行的 /etc/profile.d/file /etc/profile /etc/bashrc /root/.bashrc /root/.bash_profile
前端开发基础环境搭建July 13, 2022 · One min read编辑器及插件 Vscode 编辑器 Path Intellisense(路径自动补全) Live Server(开发Server) Vscode-icons(文件图标美化) GitLens(git 可视化增强) Git graph(git 可视化增强) Prettier(代码格式化) Eslint(代码格式化) One dark pro(编辑器主题美化) Volar(vue插件) Vue VSCode Snippets(vue 代码补全插件) Remote Development(远程开发) 微信开发者工具 软件环境 nvm(*nix) 或 nvm-windows(windows) git 浏览器插件 Vue Devtools FeHelper 系统环境 windows系统推荐安装wsl2,ubuntu18.04