add new chinese translations
This commit is contained in:
28
pages.zh/common/npm-run.md
Normal file
28
pages.zh/common/npm-run.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# npm run
|
||||
|
||||
> 运行一个脚本。
|
||||
> 更多信息:<https://docs.npmjs.com/cli/commands/npm-run-script>。
|
||||
|
||||
- 运行一个脚本:
|
||||
|
||||
`npm run {{script_name}}`
|
||||
|
||||
- 向脚本传递参数:
|
||||
|
||||
`npm run {{script_name}} -- {{argument}} {{--option}}`
|
||||
|
||||
- 运行一个名为 `start` 的脚本:
|
||||
|
||||
`npm start`
|
||||
|
||||
- 运行一个名为 `stop` 的脚本:
|
||||
|
||||
`npm stop`
|
||||
|
||||
- 运行一个名为 `restart` 的脚本:
|
||||
|
||||
`npm restart`
|
||||
|
||||
- 运行一个名为 `test` 的脚本:
|
||||
|
||||
`npm test`
|
Reference in New Issue
Block a user