回答編集履歴
2
内容追記
    
        answer	
    CHANGED
    
    | @@ -81,5 +81,18 @@ | |
| 81 81 | 
             
              run `npm audit fix` to fix them, or `npm audit` for details
         | 
| 82 82 | 
             
            ```
         | 
| 83 83 |  | 
| 84 | 
            -
            私の環境では、これだけの量のログが出ています。
         | 
| 84 | 
            +
            ~~私の環境では、これだけの量のログが出ています。
         | 
| 85 | 
            -
            質問者様には、再度お願いいたしますが、ログを全文貼り付けるよう、お願いします。
         | 
| 85 | 
            +
            質問者様には、再度お願いいたしますが、ログを全文貼り付けるよう、お願いします。~~
         | 
| 86 | 
            +
             | 
| 87 | 
            +
            ---
         | 
| 88 | 
            +
             | 
| 89 | 
            +
            「npm ERR! code MODULE_NOT_FOUND」で検索したところ、下記に当たりました。
         | 
| 90 | 
            +
             | 
| 91 | 
            +
            [https://github.com/tj/n/issues/453](https://github.com/tj/n/issues/453)
         | 
| 92 | 
            +
             | 
| 93 | 
            +
            一度、node_modulesフォルダを全削除してNode.jsをインストールしなおすと上手くいく、とのことです。
         | 
| 94 | 
            +
             | 
| 95 | 
            +
            ```Bash
         | 
| 96 | 
            +
            $ sudo rm -rf /usr/local/lib/node_modules
         | 
| 97 | 
            +
            $ curl -0 -L https://npmjs.com/install.sh | sudo sh
         | 
| 98 | 
            +
            ```
         | 
1
内容追記
    
        answer	
    CHANGED
    
    | @@ -7,4 +7,79 @@ | |
| 7 7 |  | 
| 8 8 | 
             
            正)
         | 
| 9 9 | 
             
            $ sudo npm install -g expo-cli
         | 
| 10 | 
            -
            ```
         | 
| 10 | 
            +
            ```
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            ---
         | 
| 13 | 
            +
             | 
| 14 | 
            +
            追記:
         | 
| 15 | 
            +
             | 
| 16 | 
            +
            手元で試してみました。
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            ```Plain
         | 
| 19 | 
            +
            $ npm i expo-cli
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            > node-pty-prebuilt@0.7.6 install /Users/kazto/Documents/node_modules/node-pty-prebuilt
         | 
| 22 | 
            +
            > prebuild-install || node scripts/install.js
         | 
| 23 | 
            +
             | 
| 24 | 
            +
            prebuild-install WARN install No prebuilt binaries found (target=11.6.0 runtime=node arch=x64 libc= platform=darwin)
         | 
| 25 | 
            +
            gyp ERR! configure error
         | 
| 26 | 
            +
            gyp ERR! stack Error: Command failed: /Users/kazto/.pyenv/shims/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
         | 
| 27 | 
            +
            gyp ERR! stack   File "<string>", line 1
         | 
| 28 | 
            +
            gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
         | 
| 29 | 
            +
            gyp ERR! stack                                ^
         | 
| 30 | 
            +
            gyp ERR! stack SyntaxError: invalid syntax
         | 
| 31 | 
            +
            gyp ERR! stack
         | 
| 32 | 
            +
            gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)
         | 
| 33 | 
            +
            gyp ERR! stack     at ChildProcess.emit (events.js:188:13)
         | 
| 34 | 
            +
            gyp ERR! stack     at maybeClose (internal/child_process.js:978:16)
         | 
| 35 | 
            +
            gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:395:11)
         | 
| 36 | 
            +
            gyp ERR! stack     at Socket.emit (events.js:188:13)
         | 
| 37 | 
            +
            gyp ERR! stack     at Pipe._handle.close (net.js:610:12)
         | 
| 38 | 
            +
            gyp ERR! System Darwin 18.2.0
         | 
| 39 | 
            +
            gyp ERR! command "/usr/local/Cellar/node/11.6.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--build_v8_with_gn=false"
         | 
| 40 | 
            +
            gyp ERR! cwd /Users/kazto/Documents/node_modules/node-pty-prebuilt
         | 
| 41 | 
            +
            gyp ERR! node -v v11.6.0
         | 
| 42 | 
            +
            gyp ERR! node-gyp -v v3.8.0
         | 
| 43 | 
            +
            gyp ERR! not ok
         | 
| 44 | 
            +
            npm WARN saveError ENOENT: no such file or directory, open '/Users/kazto/Documents/package.json'
         | 
| 45 | 
            +
            npm WARN enoent ENOENT: no such file or directory, open '/Users/kazto/Documents/package.json'
         | 
| 46 | 
            +
            npm WARN gatsby-source-filesystem@2.0.3 requires a peer of gatsby@>2.0.0-alpha but none is installed. You must install peer dependencies yourself.
         | 
| 47 | 
            +
            npm WARN gatsby-transformer-yaml@2.1.3 requires a peer of gatsby@>2.0.15 but none is installed. You must install peer dependencies yourself.
         | 
| 48 | 
            +
            npm WARN Documents No description
         | 
| 49 | 
            +
            npm WARN Documents No repository field.
         | 
| 50 | 
            +
            npm WARN Documents No README data
         | 
| 51 | 
            +
            npm WARN Documents No license field.
         | 
| 52 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-darwin-ia32@2.2.8 (node_modules/@expo/ngrok-bin-darwin-ia32):
         | 
| 53 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/ngrok-bin-darwin-ia32@2.2.8: wanted {"os":"darwin","arch":"ia32"} (current: {"os":"darwin","arch":"x64"})
         | 
| 54 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-freebsd-ia32@2.2.8 (node_modules/@expo/ngrok-bin-freebsd-ia32):
         | 
| 55 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/ngrok-bin-freebsd-ia32@2.2.8: wanted {"os":"freebsd","arch":"ia32"} (current: {"os":"darwin","arch":"x64"})
         | 
| 56 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux-arm64@2.2.8 (node_modules/@expo/ngrok-bin-linux-arm64):
         | 
| 57 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/ngrok-bin-linux-arm64@2.2.8: wanted {"os":"linux","arch":"arm64"} (current: {"os":"darwin","arch":"x64"})
         | 
| 58 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux-ia32@2.2.8 (node_modules/@expo/ngrok-bin-linux-ia32):
         | 
| 59 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/ngrok-bin-linux-ia32@2.2.8: wanted {"os":"linux","arch":"ia32"} (current: {"os":"darwin","arch":"x64"})
         | 
| 60 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux-arm@2.2.8 (node_modules/@expo/ngrok-bin-linux-arm):
         | 
| 61 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/ngrok-bin-linux-arm@2.2.8: wanted {"os":"linux","arch":"arm"} (current: {"os":"darwin","arch":"x64"})
         | 
| 62 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-freebsd-x64@2.2.8 (node_modules/@expo/ngrok-bin-freebsd-x64):
         | 
| 63 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/ngrok-bin-freebsd-x64@2.2.8: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"darwin","arch":"x64"})
         | 
| 64 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-sunos-x64@2.2.8 (node_modules/@expo/ngrok-bin-sunos-x64):
         | 
| 65 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/ngrok-bin-sunos-x64@2.2.8: wanted {"os":"sunos","arch":"x64"} (current: {"os":"darwin","arch":"x64"})
         | 
| 66 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-win32-x64@2.2.8-beta.1 (node_modules/@expo/ngrok-bin-win32-x64):
         | 
| 67 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/ngrok-bin-win32-x64@2.2.8-beta.1: wanted {"os":"win32","arch":"x64"} (current: {"os":"darwin","arch":"x64"})
         | 
| 68 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-win32-ia32@2.2.8-beta.1 (node_modules/@expo/ngrok-bin-win32-ia32):
         | 
| 69 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/ngrok-bin-win32-ia32@2.2.8-beta.1: wanted {"os":"win32","arch":"ia32"} (current: {"os":"darwin","arch":"x64"})
         | 
| 70 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux-x64@2.2.8 (node_modules/@expo/ngrok-bin-linux-x64):
         | 
| 71 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/ngrok-bin-linux-x64@2.2.8: wanted {"os":"linux","arch":"x64"} (current: {"os":"darwin","arch":"x64"})
         | 
| 72 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/traveling-fastlane-linux@1.8.0 (node_modules/@expo/traveling-fastlane-linux):
         | 
| 73 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/traveling-fastlane-linux@1.8.0: wanted {"os":"win32,linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})
         | 
| 74 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pty-prebuilt@0.7.6 (node_modules/node-pty-prebuilt):
         | 
| 75 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pty-prebuilt@0.7.6 install: `prebuild-install || node scripts/install.js`
         | 
| 76 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
         | 
| 77 | 
            +
             | 
| 78 | 
            +
            + expo-cli@2.11.6
         | 
| 79 | 
            +
            updated 1 package and audited 14838 packages in 17.071s
         | 
| 80 | 
            +
            found 10 vulnerabilities (5 low, 5 moderate)
         | 
| 81 | 
            +
              run `npm audit fix` to fix them, or `npm audit` for details
         | 
| 82 | 
            +
            ```
         | 
| 83 | 
            +
             | 
| 84 | 
            +
            私の環境では、これだけの量のログが出ています。
         | 
| 85 | 
            +
            質問者様には、再度お願いいたしますが、ログを全文貼り付けるよう、お願いします。
         | 
