npm i egg –save npm ERR! code ENOSELF

错误提示:   localhost:egg shaozeming$ npm init This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sensible defaults. See `npm help json` for definitive d…

Read more...

npm 取消淘宝镜像,恢复默认资源地址

设置淘宝的是: npm config set registry https://registry.npm.taobao.org 不想用他们的,再设置回原来的就可以了: npm config set registry https://registry.npmjs.org

Read more...

安装或升级最新node+npm稳定版

先安装 nvm # 下载安装 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash # 更新 bash 环境 . ~/.bashrc # 测试 nvm 是否安装成功 nvm –version 安装或更新 node # 安装 node 稳定版本 nvm install s…

Read more...