Skip to content

Commit 822438a

Browse files
BassemNKhalilVesaJuvonen
authored andcommitted
Remove --save from npm install command(s) (SharePoint#4389)
As per NPM install docs (https://docs.npmjs.com/cli/install), by default, npm install will install all modules listed as dependencies in package.json. This seems to be the case since npm 5 release according to this official blog post (https://blog.npmjs.org/post/161081169345/v500) dated May 2017.
1 parent 09f0830 commit 822438a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/spfx/web-parts/get-started/add-jqueryui-accordion-to-web-part.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,22 @@ At this point, Yeoman installs the required dependencies and scaffolds the solut
7676
1. In the console, enter the following to install the jQuery npm package:
7777
7878
```shell
79-
npm install jquery@2 --save
79+
npm install jquery@2
8080
```
8181
8282
1. Now enter the following to install the jQueryUI npm package:
8383
8484
```shell
85-
npm install jqueryui --save
85+
npm install jqueryui
8686
```
8787
8888
Next, we need to install the typings for our project. Starting from TypeScript 2.0, we can use npm to install needed typings.
8989
9090
1. Open your console and install the needed types:
9191
9292
```shell
93-
npm install @types/jquery@2 --save
94-
npm install @types/jqueryui --save
93+
npm install @types/jquery@2
94+
npm install @types/jqueryui
9595
```
9696
9797
### To unbundle external dependencies from web part bundle

0 commit comments

Comments
 (0)