2017-10-18 14 views
0

ノードv6.11.3、npmバージョン3.10.10 およびcreate-react-native-appバージョン:1.0.0、macOS Sierra私はここで見つける指示に従ってみました10.12.6 : https://facebook.github.io/react-native/docs/getting-started.html#contentは、最小限の反応ネイティブアプリを作成するためには、私は次のエラーreact-nativeとの問題:開始スクリプト 'react-native-scripts start'

0 info it worked if it ends with ok 
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ] 
2 info using [email protected] 
3 info using [email protected] 
4 verbose run-script [ 'prestart', 'start', 'poststart' ] 
5 info lifecycle [email protected]~prestart: [email protected] 
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing 
7 info lifecycle [email protected]~start: [email protected] 
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true 
9 verbose lifecycle [email protected]~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/alejandro.caballero/Projects/AwesomeProject/node_modules/.bin:/Users/alejandro.caballero/.rvm/gems/ruby-2.4.1/bin:/Users/alejandro.caballero/.rvm/gems/[email protected]/bin:/Users/alejandro.caballero/.rvm/rubies/ruby-2.4.1/bin:/Users/alejandro.caballero/.jenv/shims:/Users/alejandro.caballero/.jenv/bin:/Users/alejandro.caballero/.jenv/shims:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/opt/X11/bin:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/munki:/Library/TeX/texbin:/Users/alejandro.caballero/.rvm/bin 
10 verbose lifecycle [email protected]~start: CWD: /Users/alejandro.caballero/Projects/AwesomeProject 
11 silly lifecycle [email protected]~start: Args: [ '-c', 'react-native-scripts start' ] 
12 silly lifecycle [email protected]~start: Returned: code: 1 signal: null 
13 info lifecycle [email protected]~start: Failed to exec start script 
14 verbose stack Error: [email protected] start: `react-native-scripts start` 
14 verbose stack Exit status 1 
14 verbose stack  at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16) 
14 verbose stack  at emitTwo (events.js:106:13) 
14 verbose stack  at EventEmitter.emit (events.js:191:7) 
14 verbose stack  at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14) 
14 verbose stack  at emitTwo (events.js:106:13) 
14 verbose stack  at ChildProcess.emit (events.js:191:7) 
14 verbose stack  at maybeClose (internal/child_process.js:920:16) 
14 verbose stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5) 
15 verbose pkgid [email protected] 
16 verbose cwd /Users/alejandro.caballero/Projects/AwesomeProject 
17 error Darwin 16.7.0 
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" 
19 error node v6.11.3 
20 error npm v3.10.10 
21 error code ELIFECYCLE 
22 error [email protected] start: `react-native-scripts start` 
22 error Exit status 1 
23 error Failed at the [email protected] start script 'react-native-scripts start'. 
23 error Make sure you have the latest version of node.js and npm installed. 
23 error If you do, this is most likely a problem with the AwesomeProject package, 
23 error not with npm itself. 
23 error Tell the author that this fails on your system: 
23 error  react-native-scripts start 
23 error You can get information on how to open an issue for this project with: 
23 error  npm bugs AwesomeProject 
23 error Or if that isn't available, you can get their info via: 
23 error  npm owner ls AwesomeProject 
23 error There is likely additional logging output above. 
24 verbose exit [ 1, true ] 
私はすでに試してみました

アンインストールノードを受信し、それを再度インストールしていないし、何も

アイデア?

答えて

1

端末で以下のコマンドを試すことができます。役立つかもしれません。

  • 醸造のアンインストールノード
  • にsudoのchown -R "の$ USER":管理者は/ usr/local
  • にsudoのchown -R "の$ USER":管理/ライブラリ/キャッシュ/自作
  • 醸造をインストールノード
  • NPMは-gを作成-反応するネイティブアプリインストール
  • 作成反応するネイティブアプリYour_Project_Name
  • CD Your_Project_Name
  • npm start

上記のコマンドがうまくいかない場合は、以下のコマンドを試してみて、上記のコマンドをもう一度やり直してください。

関連する問題