質問編集履歴

3

npm

2020/06/29 10:13

投稿

fuhixx
fuhixx

スコア22

test CHANGED
File without changes
test CHANGED
@@ -77,3 +77,235 @@
77
77
  }
78
78
 
79
79
  ```
80
+
81
+ 以下はnpmで試みたコードの一部です↓
82
+
83
+ ```
84
+
85
+ fuhixx-2:gulptest-stylelint fuhixx$ node -v
86
+
87
+ v14.4.0
88
+
89
+ fuhixx-2:gulptest-stylelint fuhixx$ npm init -y
90
+
91
+ Wrote to /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/package.json:
92
+
93
+
94
+
95
+ {
96
+
97
+ "name": "gulptest-stylelint",
98
+
99
+ "version": "1.0.0",
100
+
101
+ "description": "",
102
+
103
+ "main": "gulpfile.js",
104
+
105
+ "scripts": {
106
+
107
+ "test": "echo \"Error: no test specified\" && exit 1"
108
+
109
+ },
110
+
111
+ "keywords": [],
112
+
113
+ "author": "",
114
+
115
+ "license": "ISC"
116
+
117
+ }
118
+
119
+
120
+
121
+
122
+
123
+ fuhixx-2:gulptest-stylelint fuhixx$ npm i -D gulp gulp-notify gulp-plumber gulp-sass gulp-sass-glob gulp-html-beautify gulp-stylelint gulp-autoprefixer gulp-uglify browser-sync
124
+
125
+ npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
126
+
127
+ npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
128
+
129
+ npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
130
+
131
+ npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
132
+
133
+ ^[⸨░░░░░░░░░░░░░░░░░░⸩ ⠧ fetchMetadata: sill resolveWithNewModule ms@2.0.0 check^[⸨░░░░░░░░░░░░░░░░░░⸩ ⠦ loadDep:strip-ansi: sill resolveWithNewModule wrap-ansinpm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
134
+
135
+
136
+
137
+ > fsevents@1.2.13 install /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/node_modules/fsevents
138
+
139
+ > node install.js
140
+
141
+
142
+
143
+ SOLINK_MODULE(target) Release/.node
144
+
145
+ CXX(target) Release/obj.target/fse/fsevents.o
146
+
147
+ SOLINK_MODULE(target) Release/fse.node
148
+
149
+
150
+
151
+ > node-sass@4.14.1 install /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/node_modules/node-sass
152
+
153
+ > node scripts/install.js
154
+
155
+
156
+
157
+ Cached binary found at /Users/fuhixx/.npm/node-sass/4.14.1/darwin-x64-72_binding.node
158
+
159
+
160
+
161
+ > node-sass@4.14.1 postinstall /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/node_modules/node-sass
162
+
163
+ > node scripts/build.js
164
+
165
+
166
+
167
+ Binary found at /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/node_modules/node-sass/vendor/darwin-x64-72/binding.node
168
+
169
+ Testing binary
170
+
171
+ Binary is fine
172
+
173
+ npm notice created a lockfile as package-lock.json. You should commit this file.
174
+
175
+ npm WARN gulp-stylelint@13.0.0 requires a peer of stylelint@^13.0.0 but none is installed. You must install peer dependencies yourself.
176
+
177
+ npm WARN gulptest-stylelint@1.0.0 No description
178
+
179
+ npm WARN gulptest-stylelint@1.0.0 No repository field.
180
+
181
+
182
+
183
+ + gulp-sass-glob@1.1.0
184
+
185
+ + gulp-sass@4.1.0
186
+
187
+ + gulp-html-beautify@1.0.1
188
+
189
+ + gulp-stylelint@13.0.0
190
+
191
+ + gulp-uglify@3.0.2
192
+
193
+ + gulp@4.0.2
194
+
195
+ + gulp-notify@3.2.0
196
+
197
+ + gulp-autoprefixer@7.0.1
198
+
199
+ + gulp-plumber@1.2.1
200
+
201
+ + browser-sync@2.26.7
202
+
203
+ added 677 packages from 458 contributors and audited 677 packages in 24.87s
204
+
205
+
206
+
207
+ 9 packages are looking for funding
208
+
209
+ run `npm fund` for details
210
+
211
+
212
+
213
+ found 6 vulnerabilities (3 low, 3 high)
214
+
215
+ run `npm audit fix` to fix them, or `npm audit` for details
216
+
217
+ fuhixx-2:gulptest-stylelint fuhixx$ node -v
218
+
219
+ v12.18.1
220
+
221
+ fuhixx-2:gulptest-stylelint fuhixx$ npm uninstall -D gulp-stylelint
222
+
223
+ npm WARN gulptest-stylelint@1.0.0 No description
224
+
225
+ npm WARN gulptest-stylelint@1.0.0 No repository field.
226
+
227
+
228
+
229
+ removed 12 packages and audited 665 packages in 4.249s
230
+
231
+
232
+
233
+ 8 packages are looking for funding
234
+
235
+ run `npm fund` for details
236
+
237
+
238
+
239
+ found 6 vulnerabilities (3 low, 3 high)
240
+
241
+ run `npm audit fix` to fix them, or `npm audit` for details
242
+
243
+ fuhixx-2:gulptest-stylelint fuhixx$ npm i -g gulp-stylelint
244
+
245
+ npm WARN gulp-stylelint@13.0.0 requires a peer of stylelint@^13.0.0 but none is installed. You must install peer dependencies yourself.
246
+
247
+
248
+
249
+ + gulp-stylelint@13.0.0
250
+
251
+ updated 1 package in 1.194s
252
+
253
+ fuhixx-2:gulptest-stylelint fuhixx$ gulp
254
+
255
+ Error: Cannot find module 'gulp-stylelint'
256
+
257
+ Require stack:
258
+
259
+ - /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/gulpfile.js
260
+
261
+ - /usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js
262
+
263
+ - /usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js
264
+
265
+ - /usr/local/lib/node_modules/gulp/node_modules/gulp-cli/index.js
266
+
267
+ - /usr/local/lib/node_modules/gulp/bin/gulp.js
268
+
269
+ at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
270
+
271
+ at Function.Module._load (internal/modules/cjs/loader.js:842:27)
272
+
273
+ at Module.require (internal/modules/cjs/loader.js:1026:19)
274
+
275
+ at require (internal/modules/cjs/helpers.js:72:18)
276
+
277
+ at Object.<anonymous> (/Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/gulpfile.js:13:23)
278
+
279
+ at Module._compile (internal/modules/cjs/loader.js:1138:30)
280
+
281
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
282
+
283
+ at Module.load (internal/modules/cjs/loader.js:986:32)
284
+
285
+ at Function.Module._load (internal/modules/cjs/loader.js:879:14)
286
+
287
+ at Module.require (internal/modules/cjs/loader.js:1026:19) {
288
+
289
+ code: 'MODULE_NOT_FOUND',
290
+
291
+ requireStack: [
292
+
293
+ '/Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/gulpfile.js',
294
+
295
+ '/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js',
296
+
297
+ '/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js',
298
+
299
+ '/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/index.js',
300
+
301
+ '/usr/local/lib/node_modules/gulp/bin/gulp.js'
302
+
303
+ ]
304
+
305
+ }
306
+
307
+ fuhixx-2:gulptest-stylelint fuhixx$
308
+
309
+
310
+
311
+ ```

2

kousin

2020/06/29 10:13

投稿

fuhixx
fuhixx

スコア22

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  ・Node.jsを推奨版にする
4
4
 
5
- ・node_modulesを入れ直して再度インストール
5
+ ・node_modulesを入れ直して再度ローカルインストール
6
+
7
+ ・node_modulesを入れ直してグローバルインストールする
6
8
 
7
9
  をしても同じでした。。
8
10
 

1

タイトル変更

2020/06/29 10:09

投稿

fuhixx
fuhixx

スコア22

test CHANGED
@@ -1 +1 @@
1
- npm gulp-stylelintをインストールし直しても、index.jsが生成されせん
1
+ npm gulp-stylelintをインストールし直しても、'MODULE_NOT_FOUND'となり
test CHANGED
@@ -1,6 +1,10 @@
1
1
  なぜindex.jsが生成されないのでしょうか。
2
2
 
3
+ ・Node.jsを推奨版にする
4
+
5
+ ・node_modulesを入れ直して再度インストール
6
+
3
- 何度インストールしても同じでした。。
7
+ しても同じでした。。
4
8
 
5
9
 
6
10