質問編集履歴

5

誤字

2019/05/20 03:07

投稿

ike-0315
ike-0315

スコア30

test CHANGED
File without changes
test CHANGED
@@ -80,7 +80,11 @@
80
80
 
81
81
  【※追記】
82
82
 
83
+ 上記の構築方法は古い方法のようでした。
84
+
85
+ npm uninstall -g create-react-appでアンインストールを実行した後、
86
+
83
- 上記の構築方法は古い方法のようでしたが、[公式ページ](https://facebook.github.io/create-react-app/docs/getting-started)に倣って以下の方法を試しましたが、再びエラーが出てしまいました。
87
+ [公式ページ](https://facebook.github.io/create-react-app/docs/getting-started)に倣って以下の方法を試しましたが、再びエラーが出てしまいました。
84
88
 
85
89
 
86
90
 

4

追記

2019/05/20 03:07

投稿

ike-0315
ike-0315

スコア30

test CHANGED
File without changes
test CHANGED
@@ -78,6 +78,8 @@
78
78
 
79
79
 
80
80
 
81
+ 【※追記】
82
+
81
83
  上記の構築方法は古い方法のようでしたが、[公式ページ](https://facebook.github.io/create-react-app/docs/getting-started)に倣って以下の方法を試しましたが、再びエラーが出てしまいました。
82
84
 
83
85
 
@@ -92,7 +94,7 @@
92
94
 
93
95
  ```
94
96
 
95
- エラー内容は以下の通りです。
97
+ npm startの後に出てきた、エラー内容は以下の通りです。
96
98
 
97
99
 
98
100
 

3

エラー内容の追加

2019/05/20 03:04

投稿

ike-0315
ike-0315

スコア30

test CHANGED
File without changes
test CHANGED
@@ -73,3 +73,69 @@
73
73
 
74
74
 
75
75
  何がいけないのか分からないので、教えていただきたいです。
76
+
77
+
78
+
79
+
80
+
81
+ 上記の構築方法は古い方法のようでしたが、[公式ページ](https://facebook.github.io/create-react-app/docs/getting-started)に倣って以下の方法を試しましたが、再びエラーが出てしまいました。
82
+
83
+
84
+
85
+ ```ここに言語を入力
86
+
87
+ npx create-react-app my-app
88
+
89
+ cd my-app
90
+
91
+ npm start
92
+
93
+ ```
94
+
95
+ エラー内容は以下の通りです。
96
+
97
+
98
+
99
+ ```ここに言語を入力
100
+
101
+ > my-app@0.1.0 start C:\Users\username\Desktop\react-lesson\my-app
102
+
103
+ > react-scripts start
104
+
105
+ Starting the development server...
106
+
107
+
108
+
109
+ events.js:174
110
+
111
+ throw er; // Unhandled 'error' event
112
+
113
+ ^
114
+
115
+
116
+
117
+ Error: spawn cmd ENOENT
118
+
119
+ at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
120
+
121
+ at onErrorNT (internal/child_process.js:415:16)
122
+
123
+ at process._tickCallback (internal/process/next_tick.js:63:19)
124
+
125
+ Emitted 'error' event at:
126
+
127
+ at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
128
+
129
+ at onErrorNT (internal/child_process.js:415:16)
130
+
131
+ at process._tickCallback (internal/process/next_tick.js:63:19)npm ERR! code ELIFECYCLE
132
+
133
+ npm ERR! errno 1
134
+
135
+ npm ERR! my-app@0.1.0 start: `react-scripts start`
136
+
137
+ npm ERR! Exit status 1npm ERR!
138
+
139
+ npm ERR! Failed at the my-app@0.1.0 start script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:npm ERR! C:\Users\username\AppData\Roaming\npm-cache\_logs\2019-05-20T02_31_11_981Z-debug.log
140
+
141
+ ```

2

ターミナル環境の追加

2019/05/20 02:36

投稿

ike-0315
ike-0315

スコア30

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- [こちらの記事](https://qiita.com/willow-c/items/ad5c1a15d8b32d75d927)を参考にReactの環境をWindows 10で構築しようとしています。
1
+ [こちらの記事](https://qiita.com/willow-c/items/ad5c1a15d8b32d75d927)を参考にReactの環境をWindows 10で、PowerShellを使って構築しようとしています。
2
2
 
3
3
 
4
4
 

1

OS情報の追加

2019/05/20 02:21

投稿

ike-0315
ike-0315

スコア30

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- [こちらの記事](https://qiita.com/willow-c/items/ad5c1a15d8b32d75d927)を参考にReactの環境を構築しようとしています。
1
+ [こちらの記事](https://qiita.com/willow-c/items/ad5c1a15d8b32d75d927)を参考にReactの環境をWindows 10で構築しようとしています。
2
2
 
3
3
 
4
4