mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
Warn about npm 5 in issue template
This commit is contained in:
10
.github/ISSUE_TEMPLATE.md
vendored
10
.github/ISSUE_TEMPLATE.md
vendored
@@ -1,21 +1,21 @@
|
||||
If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.
|
||||
|
||||
### Can you reproduce the problem with latest npm?
|
||||
### Can you reproduce the problem with npm 4.x?
|
||||
|
||||
Many errors, especially related to "missing modules", are due to npm bugs.
|
||||
|
||||
If you're using Windows, [follow these instructions to update npm](https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows).
|
||||
|
||||
If you're using OS X or Linux, run this to update npm:
|
||||
Try to update npm to 4.x first:
|
||||
|
||||
```
|
||||
npm install -g npm@latest
|
||||
npm install -g npm@4
|
||||
|
||||
cd your_project_directory
|
||||
rm -rf node_modules
|
||||
npm install
|
||||
```
|
||||
|
||||
**This is especially important if `npm -v` gives you 5 because npm 5 is [known to have many issues](https://github.com/npm/npm/issues/16991).**
|
||||
|
||||
Then try to reproduce the issue again.
|
||||
|
||||
Can you still reproduce it?
|
||||
|
||||
Reference in New Issue
Block a user