質問編集履歴
1
コメントしていただいたリンクを試したのち
title
CHANGED
File without changes
|
body
CHANGED
@@ -54,4 +54,90 @@
|
|
54
54
|
gyp ERR! cwd /Users/yukinaga/projects/unkoapp-37164/node_modules/@rails/webpacker/node_modules/node-sass
|
55
55
|
gyp ERR! node -v v16.13.1
|
56
56
|
gyp ERR! node-gyp -v v3.8.0
|
57
|
+
```
|
58
|
+
|
59
|
+
```package.json
|
60
|
+
{
|
61
|
+
"name": "unkoapp",
|
62
|
+
"private": true,
|
63
|
+
"dependencies": {
|
64
|
+
"@popperjs/core": "^2.11.0",
|
65
|
+
"@rails/actioncable": "^6.0.0-alpha",
|
66
|
+
"@rails/activestorage": "^6.0.0-alpha",
|
67
|
+
"@rails/ujs": "^6.0.0-alpha",
|
68
|
+
"@rails/webpacker": "4.3.0",
|
69
|
+
"bootstrap": "^5.1.3",
|
70
|
+
"node-sass": "^7.0.0",
|
71
|
+
"turbolinks": "^5.2.0"
|
72
|
+
},
|
73
|
+
"version": "0.1.0",
|
74
|
+
"devDependencies": {
|
75
|
+
"webpack-dev-server": "^4.6.0"
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
コメントをいただき、参考の[URL](https://qiita.com/n0bisuke/items/123a69ba5940f11404aa)と同じようにしようとしたらエラーが出ました。
|
82
|
+
```
|
83
|
+
yukinaga@yoshinaganoMacBook-Pro unkoapp-37164 % yarn remove nuxt node-sass sass-loader
|
84
|
+
yarn remove v1.22.17
|
85
|
+
[1/4] ???? Removing module nuxt...
|
86
|
+
error This module isn't specified in a package.json file.
|
87
|
+
info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command.
|
88
|
+
```
|
89
|
+
package.jsonにファイルがないとのエラーなので、記述してからコマンドを入力すれば良いのでしょうか?
|
90
|
+
もう1つ気になる点がございまして、yarn.lockにgitでのごちゃごちゃ具合がエラーを引き起こしているのかもしれないと思っていて、githubを使い一度変更を戻してみるほうがいいのか悩んでいます。
|
91
|
+
以下yarn.lockの一部
|
92
|
+
|
93
|
+
```yarn.lock
|
94
|
+
+"@types/minimist@^1.2.0":
|
95
|
+
version "1.2.2"
|
96
|
+
resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c"
|
97
|
+
integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==
|
98
|
+
|
99
|
+
"@types/node@*":
|
100
|
+
version "16.11.11"
|
101
|
+
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.11.tgz#6ea7342dfb379ea1210835bada87b3c512120234"
|
102
|
+
integrity sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==
|
103
|
+
|
104
|
+
"@types/normalize-package-data@^2.4.0":
|
105
|
+
version "2.4.1"
|
106
|
+
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301"
|
107
|
+
integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==
|
108
|
+
|
109
|
+
"@types/parse-json@^4.0.0":
|
110
|
+
version "4.0.0"
|
111
|
+
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
|
112
|
+
@ -1305,6 +1315,13 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1:
|
113
|
+
dependencies:
|
114
|
+
color-convert "^1.9.0"
|
115
|
+
|
116
|
+
ansi-styles@^4.1.0:
|
117
|
+
version "4.3.0"
|
118
|
+
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937"
|
119
|
+
integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==
|
120
|
+
dependencies:
|
121
|
+
color-convert "^2.0.1"
|
122
|
+
|
123
|
+
anymatch@^2.0.0:
|
124
|
+
version "2.0.0"
|
125
|
+
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb"
|
126
|
+
@ -1326,6 +1343,19 @@ aproba@^1.0.3, aproba@^1.1.1:
|
127
|
+
resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a"
|
128
|
+
integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==
|
129
|
+
|
130
|
+
"aproba@^1.0.3 || ^2.0.0":
|
131
|
+
version "2.0.0"
|
132
|
+
resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc"
|
133
|
+
integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==
|
134
|
+
|
135
|
+
are-we-there-yet@^2.0.0:
|
136
|
+
version "2.0.0"
|
137
|
+
resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz#372e0e7bd279d8e94c653aaa1f67200884bf3e1c"
|
138
|
+
integrity sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==
|
139
|
+
dependencies:
|
140
|
+
delegates "^1.0.0"
|
141
|
+
readable-stream "^3.6.0"
|
142
|
+
|
57
143
|
```
|