質問編集履歴
3
npm
title
CHANGED
File without changes
|
body
CHANGED
@@ -37,4 +37,120 @@
|
|
37
37
|
'/usr/local/lib/node_modules/gulp/bin/gulp.js'
|
38
38
|
]
|
39
39
|
}
|
40
|
+
```
|
41
|
+
以下はnpmで試みたコードの一部です↓
|
42
|
+
```
|
43
|
+
fuhixx-2:gulptest-stylelint fuhixx$ node -v
|
44
|
+
v14.4.0
|
45
|
+
fuhixx-2:gulptest-stylelint fuhixx$ npm init -y
|
46
|
+
Wrote to /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/package.json:
|
47
|
+
|
48
|
+
{
|
49
|
+
"name": "gulptest-stylelint",
|
50
|
+
"version": "1.0.0",
|
51
|
+
"description": "",
|
52
|
+
"main": "gulpfile.js",
|
53
|
+
"scripts": {
|
54
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
55
|
+
},
|
56
|
+
"keywords": [],
|
57
|
+
"author": "",
|
58
|
+
"license": "ISC"
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
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
|
63
|
+
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
|
64
|
+
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
|
65
|
+
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
|
66
|
+
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
|
67
|
+
^[⸨░░░░░░░░░░░░░░░░░░⸩ ⠧ 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
|
68
|
+
|
69
|
+
> fsevents@1.2.13 install /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/node_modules/fsevents
|
70
|
+
> node install.js
|
71
|
+
|
72
|
+
SOLINK_MODULE(target) Release/.node
|
73
|
+
CXX(target) Release/obj.target/fse/fsevents.o
|
74
|
+
SOLINK_MODULE(target) Release/fse.node
|
75
|
+
|
76
|
+
> node-sass@4.14.1 install /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/node_modules/node-sass
|
77
|
+
> node scripts/install.js
|
78
|
+
|
79
|
+
Cached binary found at /Users/fuhixx/.npm/node-sass/4.14.1/darwin-x64-72_binding.node
|
80
|
+
|
81
|
+
> node-sass@4.14.1 postinstall /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/node_modules/node-sass
|
82
|
+
> node scripts/build.js
|
83
|
+
|
84
|
+
Binary found at /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/node_modules/node-sass/vendor/darwin-x64-72/binding.node
|
85
|
+
Testing binary
|
86
|
+
Binary is fine
|
87
|
+
npm notice created a lockfile as package-lock.json. You should commit this file.
|
88
|
+
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.
|
89
|
+
npm WARN gulptest-stylelint@1.0.0 No description
|
90
|
+
npm WARN gulptest-stylelint@1.0.0 No repository field.
|
91
|
+
|
92
|
+
+ gulp-sass-glob@1.1.0
|
93
|
+
+ gulp-sass@4.1.0
|
94
|
+
+ gulp-html-beautify@1.0.1
|
95
|
+
+ gulp-stylelint@13.0.0
|
96
|
+
+ gulp-uglify@3.0.2
|
97
|
+
+ gulp@4.0.2
|
98
|
+
+ gulp-notify@3.2.0
|
99
|
+
+ gulp-autoprefixer@7.0.1
|
100
|
+
+ gulp-plumber@1.2.1
|
101
|
+
+ browser-sync@2.26.7
|
102
|
+
added 677 packages from 458 contributors and audited 677 packages in 24.87s
|
103
|
+
|
104
|
+
9 packages are looking for funding
|
105
|
+
run `npm fund` for details
|
106
|
+
|
107
|
+
found 6 vulnerabilities (3 low, 3 high)
|
108
|
+
run `npm audit fix` to fix them, or `npm audit` for details
|
109
|
+
fuhixx-2:gulptest-stylelint fuhixx$ node -v
|
110
|
+
v12.18.1
|
111
|
+
fuhixx-2:gulptest-stylelint fuhixx$ npm uninstall -D gulp-stylelint
|
112
|
+
npm WARN gulptest-stylelint@1.0.0 No description
|
113
|
+
npm WARN gulptest-stylelint@1.0.0 No repository field.
|
114
|
+
|
115
|
+
removed 12 packages and audited 665 packages in 4.249s
|
116
|
+
|
117
|
+
8 packages are looking for funding
|
118
|
+
run `npm fund` for details
|
119
|
+
|
120
|
+
found 6 vulnerabilities (3 low, 3 high)
|
121
|
+
run `npm audit fix` to fix them, or `npm audit` for details
|
122
|
+
fuhixx-2:gulptest-stylelint fuhixx$ npm i -g gulp-stylelint
|
123
|
+
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.
|
124
|
+
|
125
|
+
+ gulp-stylelint@13.0.0
|
126
|
+
updated 1 package in 1.194s
|
127
|
+
fuhixx-2:gulptest-stylelint fuhixx$ gulp
|
128
|
+
Error: Cannot find module 'gulp-stylelint'
|
129
|
+
Require stack:
|
130
|
+
- /Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/gulpfile.js
|
131
|
+
- /usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js
|
132
|
+
- /usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js
|
133
|
+
- /usr/local/lib/node_modules/gulp/node_modules/gulp-cli/index.js
|
134
|
+
- /usr/local/lib/node_modules/gulp/bin/gulp.js
|
135
|
+
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
|
136
|
+
at Function.Module._load (internal/modules/cjs/loader.js:842:27)
|
137
|
+
at Module.require (internal/modules/cjs/loader.js:1026:19)
|
138
|
+
at require (internal/modules/cjs/helpers.js:72:18)
|
139
|
+
at Object.<anonymous> (/Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/gulpfile.js:13:23)
|
140
|
+
at Module._compile (internal/modules/cjs/loader.js:1138:30)
|
141
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
|
142
|
+
at Module.load (internal/modules/cjs/loader.js:986:32)
|
143
|
+
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
|
144
|
+
at Module.require (internal/modules/cjs/loader.js:1026:19) {
|
145
|
+
code: 'MODULE_NOT_FOUND',
|
146
|
+
requireStack: [
|
147
|
+
'/Users/fuhixx/gulp成功保管ファイル/gulptest-stylelint/gulpfile.js',
|
148
|
+
'/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js',
|
149
|
+
'/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js',
|
150
|
+
'/usr/local/lib/node_modules/gulp/node_modules/gulp-cli/index.js',
|
151
|
+
'/usr/local/lib/node_modules/gulp/bin/gulp.js'
|
152
|
+
]
|
153
|
+
}
|
154
|
+
fuhixx-2:gulptest-stylelint fuhixx$
|
155
|
+
|
40
156
|
```
|
2
kousin
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
なぜindex.jsが生成されないのでしょうか。
|
2
2
|
・Node.jsを推奨版にする
|
3
|
-
・node_modulesを入れ直して再度インストール
|
3
|
+
・node_modulesを入れ直して再度ローカルインストール
|
4
|
+
・node_modulesを入れ直してグローバルインストールする
|
4
5
|
をしても同じでした。。
|
5
6
|
|
6
7
|
コードは以下です。
|
1
タイトル変更
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
npm gulp-stylelintをインストールし直しても、
|
1
|
+
npm gulp-stylelintをインストールし直しても、'MODULE_NOT_FOUND'となります。。
|
body
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
なぜindex.jsが生成されないのでしょうか。
|
2
|
+
・Node.jsを推奨版にする
|
3
|
+
・node_modulesを入れ直して再度インストール
|
2
|
-
|
4
|
+
をしても同じでした。。
|
3
5
|
|
4
6
|
コードは以下です。
|
5
7
|
どうかよろしくお願いいたします。
|