質問編集履歴

1

コメントしていただいたリンクを試したのち

2021/12/21 08:37

投稿

iggy-
iggy-

スコア2

test CHANGED
File without changes
test CHANGED
@@ -111,3 +111,175 @@
111
111
  gyp ERR! node-gyp -v v3.8.0
112
112
 
113
113
  ```
114
+
115
+
116
+
117
+ ```package.json
118
+
119
+ {
120
+
121
+ "name": "unkoapp",
122
+
123
+ "private": true,
124
+
125
+ "dependencies": {
126
+
127
+ "@popperjs/core": "^2.11.0",
128
+
129
+ "@rails/actioncable": "^6.0.0-alpha",
130
+
131
+ "@rails/activestorage": "^6.0.0-alpha",
132
+
133
+ "@rails/ujs": "^6.0.0-alpha",
134
+
135
+ "@rails/webpacker": "4.3.0",
136
+
137
+ "bootstrap": "^5.1.3",
138
+
139
+ "node-sass": "^7.0.0",
140
+
141
+ "turbolinks": "^5.2.0"
142
+
143
+ },
144
+
145
+ "version": "0.1.0",
146
+
147
+ "devDependencies": {
148
+
149
+ "webpack-dev-server": "^4.6.0"
150
+
151
+ }
152
+
153
+ }
154
+
155
+
156
+
157
+ ```
158
+
159
+
160
+
161
+ コメントをいただき、参考の[URL](https://qiita.com/n0bisuke/items/123a69ba5940f11404aa)と同じようにしようとしたらエラーが出ました。
162
+
163
+ ```
164
+
165
+ yukinaga@yoshinaganoMacBook-Pro unkoapp-37164 % yarn remove nuxt node-sass sass-loader
166
+
167
+ yarn remove v1.22.17
168
+
169
+ [1/4] ???? Removing module nuxt...
170
+
171
+ error This module isn't specified in a package.json file.
172
+
173
+ info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command.
174
+
175
+ ```
176
+
177
+ package.jsonにファイルがないとのエラーなので、記述してからコマンドを入力すれば良いのでしょうか?
178
+
179
+ もう1つ気になる点がございまして、yarn.lockにgitでのごちゃごちゃ具合がエラーを引き起こしているのかもしれないと思っていて、githubを使い一度変更を戻してみるほうがいいのか悩んでいます。
180
+
181
+ 以下yarn.lockの一部
182
+
183
+
184
+
185
+ ```yarn.lock
186
+
187
+ +"@types/minimist@^1.2.0":
188
+
189
+ version "1.2.2"
190
+
191
+ resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c"
192
+
193
+ integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==
194
+
195
+
196
+
197
+ "@types/node@*":
198
+
199
+ version "16.11.11"
200
+
201
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.11.tgz#6ea7342dfb379ea1210835bada87b3c512120234"
202
+
203
+ integrity sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==
204
+
205
+
206
+
207
+ "@types/normalize-package-data@^2.4.0":
208
+
209
+ version "2.4.1"
210
+
211
+ resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301"
212
+
213
+ integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==
214
+
215
+
216
+
217
+ "@types/parse-json@^4.0.0":
218
+
219
+ version "4.0.0"
220
+
221
+ resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
222
+
223
+ @ -1305,6 +1315,13 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1:
224
+
225
+ dependencies:
226
+
227
+ color-convert "^1.9.0"
228
+
229
+
230
+
231
+ ansi-styles@^4.1.0:
232
+
233
+ version "4.3.0"
234
+
235
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937"
236
+
237
+ integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==
238
+
239
+ dependencies:
240
+
241
+ color-convert "^2.0.1"
242
+
243
+
244
+
245
+ anymatch@^2.0.0:
246
+
247
+ version "2.0.0"
248
+
249
+ resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb"
250
+
251
+ @ -1326,6 +1343,19 @@ aproba@^1.0.3, aproba@^1.1.1:
252
+
253
+ resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a"
254
+
255
+ integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==
256
+
257
+
258
+
259
+ "aproba@^1.0.3 || ^2.0.0":
260
+
261
+ version "2.0.0"
262
+
263
+ resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc"
264
+
265
+ integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==
266
+
267
+
268
+
269
+ are-we-there-yet@^2.0.0:
270
+
271
+ version "2.0.0"
272
+
273
+ resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz#372e0e7bd279d8e94c653aaa1f67200884bf3e1c"
274
+
275
+ integrity sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==
276
+
277
+ dependencies:
278
+
279
+ delegates "^1.0.0"
280
+
281
+ readable-stream "^3.6.0"
282
+
283
+
284
+
285
+ ```