Skip to content

Commit b0bbce3

Browse files
Саша Черныхmarionebl
Саша Черных
authored andcommitted
docs: provide win32 friendly installation commands (#314)
### 1. Summary Fix installation syntax for Windows. Curly braces syntax [**doesn't work**](https://stackoverflow.com/a/38876970/5951529) for Windows-specific terminals. ### 2. Behavior before pull request ```node D:\SashaDemoRepositories\SashaCommitlint>npm install --save-dev @commitlint/{config-conventional,cli} npm ERR! code ENOLOCAL npm ERR! Could not install from "@commitlint\{config-conventional,cli}" as it does not contain a package.json file. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\SashaChernykh\AppData\Roaming\npm-cache\_logs\2018-04-10T13_23_19_766Z-debug.log ``` ### 3. Behavior after pull request ```node D:\SashaDemoRepositories\SashaCommitlint>npm install --save-dev @commitlint/config-conventional @commitlint/cli + @commitlint/[email protected] + @commitlint/[email protected] added 170 packages from 61 contributors in 34.977s ``` ### 4. Testing environment + Windows 10 Enterprise LTSB 64-bit EN, + Node.js 9.11.1, + npm 5.8.0, + [**Clink**](https://mridgers.github.io/clink/) 0.4.8. Thanks.
1 parent 86c34f1 commit b0bbce3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
```sh
4141
# Install commitlint cli and angular config
4242
npm install --save-dev @commitlint/{config-conventional,cli}
43+
# For Windows:
44+
npm install --save-dev @commitlint/config-conventional @commitlint/cli
4345

4446
# Configure commitlint to use angular config
4547
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js

0 commit comments

Comments
 (0)