06 2020 档案

摘要:在vue-cli3x项目中按需引入element-ui, 如果完全按照element-ui官网配置, 会遇到一哥小小的bug. 1. 配置 .babelrc文件之前, 如果项目之前已经存在babel.config.js文件, 要先将它删除 2. 官方的配置修改 : { "presets": [["e 阅读全文
posted @ 2020-06-16 17:20 noraZhang 阅读(653) 评论(0) 推荐(0)
摘要:今天打开终端发现 Mac下 node -V 和npm 命令都不能用了, 因为之前修改了.bash_profile文件, 而且因为尝试配置 EDITOR 环境变量, 在终端使用了 export EDITOR=vscode(虽然没有成功)命令, 我猜测可能是环境变量出了问题. 但是 nvm 命令可以用, 阅读全文
posted @ 2020-06-13 19:12 noraZhang 阅读(1034) 评论(0) 推荐(0)
摘要:1. 将node npm 删除干净后, 下载 nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash 配置环境变量 : 1| vi ~/.bash_profile 2| export NV 阅读全文
posted @ 2020-06-11 18:38 noraZhang 阅读(203) 评论(0) 推荐(0)
摘要:nrm can help you easy and fast switch between different npm registries, now include: npm, cnpm, taobao, nj(nodejitsu). 安装 : $ npm install -g nrm nrm l 阅读全文
posted @ 2020-06-10 17:33 noraZhang 阅读(113) 评论(0) 推荐(0)
摘要:1. 先查看node 和 vue 的安装路径 which vue : /Users/xxxxx/.node_global/bin/vue which node : /usr/local/bin/node which npm : /usr/local/bin/npm 可以看到npm作为node的包管理 阅读全文
posted @ 2020-06-10 16:55 noraZhang 阅读(282) 评论(0) 推荐(0)