diff --git a/docs/install.md b/docs/install.md index 567757673..d6563217d 100644 --- a/docs/install.md +++ b/docs/install.md @@ -103,7 +103,7 @@ For example, you can do the following to have Prettier run before each commit: ```bash npm install --save-dev husky lint-staged npx husky install - npm set-script prepare "husky install" + npm pkg set scripts.prepare="husky install" npx husky add .husky/pre-commit "npx lint-staged" ``` @@ -112,7 +112,7 @@ For example, you can do the following to have Prettier run before each commit: ```bash yarn add --dev husky lint-staged npx husky install - npm set-script prepare "husky install" + npm pkg set scripts.prepare="husky install" npx husky add .husky/pre-commit "npx lint-staged" ``` @@ -120,8 +120,6 @@ For example, you can do the following to have Prettier run before each commit: -> Note: npm **set-script** command requires at least **npm v7.x**. See https://docs.npmjs.com/cli/v7/commands/npm-set-script. - 2. Add the following to your `package.json`: ```json