NPM: command
npm Command
2023-09-11 14:16:15 时间
~/.npmrc 配置文件
npm login --scope @sporadic 在.npmrc产生如下配置
npm logout --scope @sporadic
npm whoami --registry https://registry.npmjs.org
~/.npm/
global options
-ddd debug
config
npm config set registry https://registry.npmjs.org/
npm config set registry http://registry.npm.taobao.org/
init
npm init --scope @sporadic -y
version
作用修改package.json的version字段
major minor patch premajor preminor prepatch都会修改 major,minor,patch, prerelease不会
publish
--tag latest(default)
dist-tag
npm dist-tag 不能删除latest npm dist-tag add 必须跟版本号
相关文章
- What's the difference between dependencies, devDependencies and peerDependencies in npm package.json file?
- uni - 使用npm
- 报错Command line is too long. Shorten the command line xxx【解决办法】
- Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException Command
- npm 模块化方式接入 font-awsome
- 为什么 npm 要为每个项目单独安装一遍 node_modules?
- 【IoT】IDEA 编译出错 Error running xxx : Command line is too long.Shorten command line
- PowerShell yarn : 无法加载文件 C:UsersAdminAppDataRoamingnpmyarn.ps1,因为在此系统因为在此系统上禁止运行脚本。
- npm 更新 node_modules
- How to ignore incompatible engine “node” error on installing npm dependencies with yarn?
- npm/yarn查看当前使用源与设置其它源
- npm 安装
- 解决vue项目运行过程中,npm run dev 报错问题
- 国内优秀npm镜像推荐及使用
- 浅析如何编写vue3自定义插件并上传npm
- 13 个 NPM 快速开发技巧
- npm 报错之 vue项目中stylus-loader版本兼容问题(stylus(css预处理框架))
- npm install 时总是报phantomjs-prebuilt@2.1.14安装失败
- npm报错,npm.cmd无法运行,系统找不到指定的文件/运行输入cmd打不开的问题
- npm install -S -D -g 有什么区别