javascript - “npm r build”和“npm run build”的区别?
问题描述
最近我尝试使用“ npm r build
”作为简化为“ npm run build
”,但我发现这两个是不同的。我想知道“ npm r build
”是做什么的?
解决方案
命令记录在案。如果您键入:
npm help r
npm help run
...程序将在您的默认浏览器中打开相应的手册页。它们是本地文件,因此您甚至不需要互联网连接:
npm-uninstall Remove a package SYNOPSIS npm uninstall [<@scope>/]<pkg>[@<version>]... [-S|--save|-D|--save-dev|-O|--save-optional|--no-save] aliases: remove, rm, r, un, unlink
npm-run-script Run arbitrary package scripts SYNOPSIS npm run-script <command> [--silent] [-- <args>...] alias: npm run
推荐阅读
- pandas - 减少数据框->获取列中每个级别的最后一行
- sql - INSERT 中的某种 IF 条件
- javascript - 如何在我的函数中实现标准输入和标准输出
- flutter - Flutter GeneratedPluginRegistrant.h:8:9: 错误:在 m1 mac 上找不到“Flutter/Flutter.h”文件
- ansible - 如何将 Ansible 结果从列表格式化为字符串?
- java - 如何在 jdk 11 中修复 java 非法访问异常
- python-3.x - 即使安装在环境中也无法导入 geopandas
- javascript - Javascript回调函数获取父变量值
- docker - 无法通过 SSH 连接到 Gitlab
- git - 如何创建 Dev、Test、Prod