出错
使用 npm 报错
no_perms Private mode enable, only admin can publish this module
切换回原本的1
$ npm config set registry http://registry.npmjs.org
登录
1 | $ npm login |
登录后查看当前用户名1
$ npm whoami
发布
1 | $ npm publish |
更新
1 | $ npm version 1.0.1 |
安装、使用
1 | $ npm install --save zero-webpack-numbers |
1 | import * as webpackNumbers from 'zero-webpack-numbers'; |
插件
1、serve-favicon1
$ npm install serve-favicon --save
1 | var favicon = require('serve-favicon'); |