We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm i --registry=http://10.21.200.55:7001 #单次使用私有源 npm list -g --depth=0 #查看全局包列表,不考虑依赖 npm config ls -l #查看npm配置 npm i node-sass@1.0.0 #安装指定版本的包 npm update node-sass #更新包 npm search node-sass #搜索一个包是否存在 npm cache clean #清理本地包缓存 npm init --yes #快速创建一个package.json npm install -g npm #更新npm npm publish <本地路径> #发布包 npm outdated #查看包的版本状态 npm root -g #查看全局包位置
prebuild build的前置钩子 build postbuild build的后置钩子
npm i
registry=https://registry.npm.taobao.org #设置淘宝镜像 sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ #设置sass来源 phantomjs_cdnurl=http://npm.taobao.org/mirrors/phantomjs electron_mirror=http://npm.taobao.org/mirrors/electron/
假设你的梯子在你本地机器上开启了一个第三方服务器 127.0.0.1:1080,只需按照下面的方法配置一下就能正常安装 node-sass 了
npm config set proxy http://127.0.0.1:1080 npm i node-sass
下载完成后删除 http 代理
npm config delete proxy
这样下来就能正常安装了
The text was updated successfully, but these errors were encountered:
No branches or pull requests
常用命令
常用工具
npm script
.npmrc
npm i
的时候会去读取本地项目的rc文件,没有就读~目录npm link的使用
npm设置代理
假设你的梯子在你本地机器上开启了一个第三方服务器 127.0.0.1:1080,只需按照下面的方法配置一下就能正常安装 node-sass 了
下载完成后删除 http 代理
这样下来就能正常安装了
The text was updated successfully, but these errors were encountered: