Le serveur de développement réponse renvoyée code d'erreur: 500 à réagir natif

Je suis en utilisant react-native cadre pour le développement de mon application android. Je veux utiliser react-native-material-design de la bibliothèque pour faire des Toolbar avec quelques fonctionnalités en plus.

J'ai installé cette bibliothèque dans le répertoire courant où mon projet est à l'aide de commande ci-dessous :-

E:\>npm i react-native-material-design -g --save
C:\Users\ch-e00925\AppData\Roaming\npm
`-- [email protected]
+-- [email protected]  (git+https://github.com/react-n
ative-material-design/react-native-material-design-styles.git#bdc029c1a1c83ff563
d10868be38b8aed1e9989b)
`-- react-native-vector-icons@2.1.0
+-- lodash@4.17.4
`-- [email protected]
+-- [email protected]
| +-- [email protected]
| | `-- ansi-regex@2.1.1
| `-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| `-- lcid@1.0.0
|   `-- [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | `-- pinkie-promise@2.0.1
| |   `-- [email protected]
| `-- read-pkg@1.1.0
|   +-- load-json-file@1.1.0
|   | +-- graceful-fs@4.1.11
|   | +-- parse-json@2.2.0
|   | | `-- [email protected]
|   | |   `-- is-arrayish@0.2.1
|   | +-- pify@2.3.0
|   | `-- [email protected]
|   |   `-- is-utf8@0.2.1
|   +-- normalize-package-data@2.3.5
|   | +-- hosted-git-info@2.1.5
|   | +-- is-builtin-module@1.0.0
|   | | `-- [email protected]
|   | +-- [email protected]
|   | `-- validate-npm-package-license@3.0.1
|   |   +-- spdx-correct@1.0.2
|   |   | `-- [email protected]
|   |   `-- spdx-expression-parse@1.0.4
|   `-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| `-- is-fullwidth-code-point@1.0.0
|   `-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- yargs-parser@2.4.1
`-- [email protected]
E:\>

Après cela, je reçois un problème lors de l'exécution d'une application, il est peut-être de bibliothèque n'a pas été installé avec succès.

E:\Myntra>react-native start
Scanning 557 folders for symlinks in E:\Myntra\node_modules (114ms)
┌────────────────────────────────────────────────────────────────────────────┐
  Running packager on port 8081.                                            
                                                                            
  Keep this packager running while developing on any JS projects. Feel      
  free to close this tab and run your own packager instance if you          
  prefer.                                                                   
                                                                            
  https://github.com/facebook/react-native                                  │
                                                                            
└────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
E:\Myntra
[01/23/2017, 13:36:07] <START> Initializing Packager
[01/23/2017, 13:36:08]         HMR Server listening on /hot
React packager ready.
[01/23/2017, 13:36:12] <START> Requesting bundle
bundle_url: /index.android.bundle?platform=androi
d&dev=true&hot=true&minify=false
[01/23/2017, 13:36:40] <START> Building Haste Map
[01/23/2017, 13:36:40] <END>   Building Haste Map (141ms)
[01/23/2017, 13:36:40] <END>   Initializing Packager (33314ms)
[01/23/2017, 13:36:40] <START> Transforming files
transformed 584/607 (96%)(node:6316) UnhandledPromiseRejectionWarning: Unhandled
promise rejection (rejection id: 605): UnableToResolveError: Unable to resolve
module react-native-material-design-styles from E:\Myntra\node_modules\react-nat
ive-material-design\lib\config.js: Module does not exist in the module map or in
these directories:
E:\Myntra\node_modules\react-native-material-design\node_modules
,   E:\Myntra\node_modules
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cac
he`.
[01/23/2017, 13:54:09] <START> Requesting bundle
bundle_url: /index.android.bundle?platform=androi
d&dev=true&hot=true&minify=false

PS : je suis sur Windows 7 machine, ne pouvait pas trouver un moyen d'exécuter des commandes. J'ai vu ce Le serveur de développement réponse renvoyée code d'erreur: 500 à réagir indigènes mais il ne m'aide pas.

Quelqu'un peut m'aider à résoudre ce problème. Merci à l'avance.

Le serveur de développement réponse renvoyée code d'erreur: 500 à réagir natif

avez-vous essayez d'installer react-native-material-design localement et à l'échelle mondiale?
oui, il a travaillé ThanksI voulez savoir la raison, comment il est différent si j'installe package npm à l'échelle mondiale ? et pourriez-vous svp répondre à ce que je puisse marquer, il a accepté de répondre à

OriginalL'auteur N Sharma | 2017-01-23