Skip to content

Commit

Permalink
Remove unnecessary --save from npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
chibicode committed Jan 24, 2020
1 parent 764781e commit f8391b5
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/basic-features/built-in-css-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ You can use component-level Sass via CSS Modules and the `.module.scss` or `.mod
Before you can use Next.js' built-in Sass support, be sure to install [`sass`](https://github.com/sass/sass):

```bash
npm install --save sass
npm install sass
```

Sass support has the same benefits and restrictions as the built-in CSS support detailed above.
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The interactive course with quizzes will guide you through everything you need t
Install `next`, `react` and `react-dom` in your project:

```bash
npm install --save next react react-dom
npm install next react react-dom
```

Open `package.json` and add the following `scripts`:
Expand Down
4 changes: 2 additions & 2 deletions examples/with-stencil/packages/test-component/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ Instead, use a prefix that fits your company or any name for a group of related

### Node Modules

- Run `npm install my-component --save`
- Run `npm install my-component`
- Put a script tag similar to this `<script src='node_modules/my-component/dist/mycomponent.js'></script>` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc

### In a stencil-starter app

- Run `npm install my-component --save`
- Run `npm install my-component`
- Add an import to the npm packages `import my-component;`
- Then you can use the element anywhere in your template, JSX, html etc
2 changes: 1 addition & 1 deletion packages/next-bundle-analyzer/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Use `webpack-bundle-analyzer` in your Next.js project
## Installation

```
npm install --save @next/bundle-analyzer
npm install @next/bundle-analyzer
```

or
Expand Down
2 changes: 1 addition & 1 deletion packages/next-mdx/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Use [MDX](https://github.com/mdx-js/mdx) with [Next.js](https://github.com/zeit/
## Installation

```
npm install --save @next/mdx @mdx-js/loader
npm install @next/mdx @mdx-js/loader
```

or
Expand Down
4 changes: 2 additions & 2 deletions packages/next/bin/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import arg from 'next/dist/compiled/arg/index.js'
} catch (err) {
// tslint:disable-next-line
console.warn(
`The module '${dependency}' was not found. Next.js requires that you include it in 'dependencies' of your 'package.json'. To add it, run 'npm install --save ${dependency}'`
`The module '${dependency}' was not found. Next.js requires that you include it in 'dependencies' of your 'package.json'. To add it, run 'npm install ${dependency}'`
)
}
})
Expand Down Expand Up @@ -94,7 +94,7 @@ const React = require('react')

if (typeof React.Suspense === 'undefined') {
throw new Error(
`The version of React you are using is lower than the minimum required version needed for Next.js. Please upgrade "react" and "react-dom": "npm install --save react react-dom" https://err.sh/zeit/next.js/invalid-react-version`
`The version of React you are using is lower than the minimum required version needed for Next.js. Please upgrade "react" and "react-dom": "npm install react react-dom" https://err.sh/zeit/next.js/invalid-react-version`
)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/next/server/next-dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import checkCustomRoutes from '../lib/check-custom-routes'

if (typeof React.Suspense === 'undefined') {
throw new Error(
`The version of React you are using is lower than the minimum required version needed for Next.js. Please upgrade "react" and "react-dom": "npm install --save react react-dom" https://err.sh/zeit/next.js/invalid-react-version`
`The version of React you are using is lower than the minimum required version needed for Next.js. Please upgrade "react" and "react-dom": "npm install react react-dom" https://err.sh/zeit/next.js/invalid-react-version`
)
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/handles-incorrect-react.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const nextBin = path.join(nextDir, 'dist/bin/next')
describe('Handles Incorrect React Version', () => {
it('should throw an error when building with next', async () => {
expect(() => require(nextBin)).toThrow(
/The version of React you are using is lower than the minimum required version needed for Next\.js\. Please upgrade "react" and "react-dom": "npm install --save react react-dom" https:\/\/err\.sh/
/The version of React you are using is lower than the minimum required version needed for Next\.js\. Please upgrade "react" and "react-dom": "npm install react react-dom" https:\/\/err\.sh/
)
})
})

0 comments on commit f8391b5

Please sign in to comment.