回答編集履歴

2

内容追記

2019/03/04 03:34

投稿

kazto
kazto

スコア7196

test CHANGED
@@ -164,6 +164,32 @@
164
164
 
165
165
 
166
166
 
167
- 私の環境では、これだけの量のログが出ています。
167
+ ~~私の環境では、これだけの量のログが出ています。
168
168
 
169
- 質問者様には、再度お願いいたしますが、ログを全文貼り付けるよう、お願いします。
169
+ 質問者様には、再度お願いいたしますが、ログを全文貼り付けるよう、お願いします。~~
170
+
171
+
172
+
173
+ ---
174
+
175
+
176
+
177
+ 「npm ERR! code MODULE_NOT_FOUND」で検索したところ、下記に当たりました。
178
+
179
+
180
+
181
+ [https://github.com/tj/n/issues/453](https://github.com/tj/n/issues/453)
182
+
183
+
184
+
185
+ 一度、node_modulesフォルダを全削除してNode.jsをインストールしなおすと上手くいく、とのことです。
186
+
187
+
188
+
189
+ ```Bash
190
+
191
+ $ sudo rm -rf /usr/local/lib/node_modules
192
+
193
+ $ curl -0 -L https://npmjs.com/install.sh | sudo sh
194
+
195
+ ```

1

内容追記

2019/03/04 03:34

投稿

kazto
kazto

スコア7196

test CHANGED
@@ -17,3 +17,153 @@
17
17
  $ sudo npm install -g expo-cli
18
18
 
19
19
  ```
20
+
21
+
22
+
23
+ ---
24
+
25
+
26
+
27
+ 追記:
28
+
29
+
30
+
31
+ 手元で試してみました。
32
+
33
+
34
+
35
+ ```Plain
36
+
37
+ $ npm i expo-cli
38
+
39
+
40
+
41
+ > node-pty-prebuilt@0.7.6 install /Users/kazto/Documents/node_modules/node-pty-prebuilt
42
+
43
+ > prebuild-install || node scripts/install.js
44
+
45
+
46
+
47
+ prebuild-install WARN install No prebuilt binaries found (target=11.6.0 runtime=node arch=x64 libc= platform=darwin)
48
+
49
+ gyp ERR! configure error
50
+
51
+ gyp ERR! stack Error: Command failed: /Users/kazto/.pyenv/shims/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
52
+
53
+ gyp ERR! stack File "<string>", line 1
54
+
55
+ gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
56
+
57
+ gyp ERR! stack ^
58
+
59
+ gyp ERR! stack SyntaxError: invalid syntax
60
+
61
+ gyp ERR! stack
62
+
63
+ gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
64
+
65
+ gyp ERR! stack at ChildProcess.emit (events.js:188:13)
66
+
67
+ gyp ERR! stack at maybeClose (internal/child_process.js:978:16)
68
+
69
+ gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:395:11)
70
+
71
+ gyp ERR! stack at Socket.emit (events.js:188:13)
72
+
73
+ gyp ERR! stack at Pipe._handle.close (net.js:610:12)
74
+
75
+ gyp ERR! System Darwin 18.2.0
76
+
77
+ 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"
78
+
79
+ gyp ERR! cwd /Users/kazto/Documents/node_modules/node-pty-prebuilt
80
+
81
+ gyp ERR! node -v v11.6.0
82
+
83
+ gyp ERR! node-gyp -v v3.8.0
84
+
85
+ gyp ERR! not ok
86
+
87
+ npm WARN saveError ENOENT: no such file or directory, open '/Users/kazto/Documents/package.json'
88
+
89
+ npm WARN enoent ENOENT: no such file or directory, open '/Users/kazto/Documents/package.json'
90
+
91
+ 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.
92
+
93
+ 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.
94
+
95
+ npm WARN Documents No description
96
+
97
+ npm WARN Documents No repository field.
98
+
99
+ npm WARN Documents No README data
100
+
101
+ npm WARN Documents No license field.
102
+
103
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-darwin-ia32@2.2.8 (node_modules/@expo/ngrok-bin-darwin-ia32):
104
+
105
+ 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"})
106
+
107
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-freebsd-ia32@2.2.8 (node_modules/@expo/ngrok-bin-freebsd-ia32):
108
+
109
+ 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"})
110
+
111
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux-arm64@2.2.8 (node_modules/@expo/ngrok-bin-linux-arm64):
112
+
113
+ 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"})
114
+
115
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux-ia32@2.2.8 (node_modules/@expo/ngrok-bin-linux-ia32):
116
+
117
+ 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"})
118
+
119
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux-arm@2.2.8 (node_modules/@expo/ngrok-bin-linux-arm):
120
+
121
+ 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"})
122
+
123
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-freebsd-x64@2.2.8 (node_modules/@expo/ngrok-bin-freebsd-x64):
124
+
125
+ 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"})
126
+
127
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-sunos-x64@2.2.8 (node_modules/@expo/ngrok-bin-sunos-x64):
128
+
129
+ 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"})
130
+
131
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-win32-x64@2.2.8-beta.1 (node_modules/@expo/ngrok-bin-win32-x64):
132
+
133
+ 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"})
134
+
135
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-win32-ia32@2.2.8-beta.1 (node_modules/@expo/ngrok-bin-win32-ia32):
136
+
137
+ 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"})
138
+
139
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/ngrok-bin-linux-x64@2.2.8 (node_modules/@expo/ngrok-bin-linux-x64):
140
+
141
+ 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"})
142
+
143
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/traveling-fastlane-linux@1.8.0 (node_modules/@expo/traveling-fastlane-linux):
144
+
145
+ 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"})
146
+
147
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pty-prebuilt@0.7.6 (node_modules/node-pty-prebuilt):
148
+
149
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pty-prebuilt@0.7.6 install: `prebuild-install || node scripts/install.js`
150
+
151
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
152
+
153
+
154
+
155
+ + expo-cli@2.11.6
156
+
157
+ updated 1 package and audited 14838 packages in 17.071s
158
+
159
+ found 10 vulnerabilities (5 low, 5 moderate)
160
+
161
+ run `npm audit fix` to fix them, or `npm audit` for details
162
+
163
+ ```
164
+
165
+
166
+
167
+ 私の環境では、これだけの量のログが出ています。
168
+
169
+ 質問者様には、再度お願いいたしますが、ログを全文貼り付けるよう、お願いします。