質問編集履歴
3
error
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -17,73 +17,6 @@
|
|
|
17
17
|
インストールしたものはローカルでbrowser-syncとgulpをインストールしました。
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
**package.json**
|
|
21
|
-
```json
|
|
22
|
-
{
|
|
23
|
-
"name": "plusers_wp",
|
|
24
|
-
"version": "1.0.0",
|
|
25
|
-
"description": "",
|
|
26
|
-
"main": "index.js",
|
|
27
|
-
"scripts": {
|
|
28
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
29
|
-
"gulp": "gulp",
|
|
30
|
-
"start": "gulp"
|
|
31
|
-
},
|
|
32
|
-
"repository": {
|
|
33
|
-
"type": "git",
|
|
34
|
-
"url": "git+https://github.com/kingkazuma7/plusers_wp.git"
|
|
35
|
-
},
|
|
36
|
-
"keywords": [],
|
|
37
|
-
"author": "",
|
|
38
|
-
"license": "ISC",
|
|
39
|
-
"bugs": {
|
|
40
|
-
"url": "https://github.com/kingkazuma7/plusers_wp/issues"
|
|
41
|
-
},
|
|
42
|
-
"homepage": "https://github.com/kingkazuma7/plusers_wp#readme",
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"browser-sync": "^2.26.3",
|
|
45
|
-
"gulp": "^4.0.0"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
**gulpfile.js**
|
|
52
|
-
```js
|
|
53
|
-
var gulp = require('gulp');
|
|
54
|
-
var browserSync =require('browser-sync');
|
|
55
|
-
|
|
56
|
-
gulp.task('default', ['browser-sync']);
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
gulp.task('browser-sync', function() {
|
|
60
|
-
browserSync({
|
|
61
|
-
server: {
|
|
62
|
-
baseDir: "./plusers_wp/" //対象ディレクトリ
|
|
63
|
-
,index : "index.html" //インデックスファイル
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
//
|
|
69
|
-
//ブラウザリロード
|
|
70
|
-
//
|
|
71
|
-
gulp.task('bs-reload', function () {
|
|
72
|
-
browserSync.reload();
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
//
|
|
76
|
-
//監視ファイル
|
|
77
|
-
//
|
|
78
|
-
gulp.task('default', ['browser-sync'], function () {
|
|
79
|
-
gulp.watch("./htdocs/*.html", ['bs-reload']);
|
|
80
|
-
gulp.watch("./htdocs/commons/css/*.css", ['bs-reload']);
|
|
81
|
-
gulp.watch("./htdocs/commons/js/*.js", ['bs-reload']);
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
|
|
87
20
|
**npm run gulpを行ったエラー文**
|
|
88
21
|
```sh
|
|
89
22
|
[plusers_wp] npm run gulp 22:28:42 ☁ master ☂ ✭
|
|
@@ -160,4 +93,75 @@
|
|
|
160
93
|
```
|
|
161
94
|
|
|
162
95
|
何かアドバイスいただけると助かります。
|
|
96
|
+
よろしくお願いします。
|
|
97
|
+
|
|
98
|
+
## 2/27追記
|
|
99
|
+
gulp4の参考サイトを教えていただきありがとうございます。
|
|
100
|
+
下記の流れでコマンドを打つと`$ npm install --save-dev gulp@next`のところでエラーになってしまいます。
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
$ npm rm -g gulp
|
|
104
|
+
$ npm install -g gulp-cli
|
|
105
|
+
|
|
106
|
+
$ npm uninstall --save-dev gulp
|
|
107
|
+
$ npm install --save-dev gulp@next
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### `npm install --save-dev gulp@next`実行のコマンドエラー
|
|
111
|
+
```sh
|
|
112
|
+
[plusers_wp] npm install --save-dev gulp@next 8:21:19 ☁ master ☂ ✭
|
|
113
|
+
npm ERR! code ETARGET
|
|
114
|
+
npm ERR! notarget No matching version found for gulp@next
|
|
115
|
+
npm ERR! notarget In most cases you or one of your dependencies are requesting
|
|
116
|
+
npm ERR! notarget a package version that doesn't exist.
|
|
117
|
+
|
|
118
|
+
npm ERR! A complete log of this run can be found in:
|
|
119
|
+
npm ERR! /Users/takanashikazuma/.npm/_logs/2019-02-26T23_21_30_921Z-debug.log
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### debug.log
|
|
123
|
+
```sh
|
|
124
|
+
0 info it worked if it ends with ok
|
|
125
|
+
1 verbose cli [ '/Users/ユーザー名/.nodebrew/node/v9.4.0/bin/node',
|
|
126
|
+
1 verbose cli '/Users/ユーザー名/.nodebrew/current/bin/npm',
|
|
127
|
+
1 verbose cli 'install',
|
|
128
|
+
1 verbose cli '--save-dev',
|
|
129
|
+
1 verbose cli 'gulp@next' ]
|
|
130
|
+
2 info using npm@5.6.0
|
|
131
|
+
3 info using node@v9.4.0
|
|
132
|
+
4 verbose npm-session cf3c474c4236b685
|
|
133
|
+
5 silly install loadCurrentTree
|
|
134
|
+
6 silly install readLocalPackageData
|
|
135
|
+
7 http fetch GET 304 https://registry.npmjs.org/gulp 235ms (from cache)
|
|
136
|
+
8 silly registry:manifest no matching version for gulp@next in the cache. Forcing revalidation
|
|
137
|
+
9 http fetch GET 304 https://registry.npmjs.org/gulp 60ms (from cache)
|
|
138
|
+
10 silly fetchPackageMetaData error for gulp@next No matching version found for gulp@next
|
|
139
|
+
11 verbose type tag
|
|
140
|
+
12 verbose stack gulp: No matching version found for gulp@next
|
|
141
|
+
12 verbose stack at pickManifest (/Users/ユーザー名/.nodebrew/node/v9.4.0/lib/node_modules/npm/node_modules/pacote/node_modules/npm-pick-manifest/index.js:65:11)
|
|
142
|
+
12 verbose stack at fetchPackument.then.packument (/Users/ユーザー名/.nodebrew/node/v9.4.0/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/manifest.js:52:18)
|
|
143
|
+
12 verbose stack at tryCatcher (/Users/ユーザー名/.nodebrew/node/v9.4.0/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
|
|
144
|
+
12 verbose stack at Promise._settlePromiseFromHandler (/Users/ユーザー名/.nodebrew/node/v9.4.0/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
|
|
145
|
+
12 verbose stack at Promise._settlePromise (/Users/ユーザー名/.nodebrew/node/v9.4.0/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
|
|
146
|
+
12 verbose stack at Promise._settlePromise0 (/Users/ユーザー名/.nodebrew/node/v9.4.0/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
|
|
147
|
+
12 verbose stack at Promise._settlePromises (/Users/ユーザー名/.nodebrew/node/v9.4.0/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
|
|
148
|
+
12 verbose stack at Async._drainQueue (/Users/ユーザー名/.nodebrew/node/v9.4.0/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
|
|
149
|
+
12 verbose stack at Async._drainQueues (/Users/ユーザー名/.nodebrew/node/v9.4.0/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
|
|
150
|
+
12 verbose stack at Immediate.Async.drainQueues [as _onImmediate] (/Users/ユーザー名/.nodebrew/node/v9.4.0/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
|
|
151
|
+
12 verbose stack at runCallback (timers.js:756:18)
|
|
152
|
+
12 verbose stack at tryOnImmediate (timers.js:717:5)
|
|
153
|
+
12 verbose stack at processImmediate [as _immediateCallback] (timers.js:697:5)
|
|
154
|
+
13 verbose cwd /Applications/MAMP/htdocs/webDevelopment/WordPress/Sakura/portfolio_nasio7/work/WordPress/plusers_wp
|
|
155
|
+
14 verbose Darwin 18.2.0
|
|
156
|
+
15 verbose argv "/Users/ユーザー名/.nodebrew/node/v9.4.0/bin/node" "/Users/ユーザー名/.nodebrew/current/bin/npm" "install" "--save-dev" "gulp@next"
|
|
157
|
+
16 verbose node v9.4.0
|
|
158
|
+
17 verbose npm v5.6.0
|
|
159
|
+
18 error code ETARGET
|
|
160
|
+
19 error notarget No matching version found for gulp@next
|
|
161
|
+
20 error notarget In most cases you or one of your dependencies are requesting
|
|
162
|
+
20 error notarget a package version that doesn't exist.
|
|
163
|
+
21 verbose exit [ 1, true ]
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
何かアドバイスいただけると助かります。。
|
|
163
167
|
よろしくお願いします。
|
2
eroor
title
CHANGED
|
File without changes
|
body
CHANGED
|
File without changes
|
1
エラー文更新
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -86,66 +86,8 @@
|
|
|
86
86
|
|
|
87
87
|
**npm run gulpを行ったエラー文**
|
|
88
88
|
```sh
|
|
89
|
-
npm
|
|
89
|
+
[plusers_wp] npm run gulp 22:28:42 ☁ master ☂ ✭
|
|
90
|
-
npm ERR! code EJSONPARSE
|
|
91
|
-
npm ERR! Failed to parse json
|
|
92
|
-
npm ERR! Unexpected token / in JSON at position 168 while parsing near '...ed\" && exit 1"
|
|
93
|
-
npm ERR! // "gulp": "gulp",
|
|
94
|
-
npm ERR! ...'
|
|
95
|
-
npm ERR! File: /Applications/MAMP/htdocs/webDevelopment/WordPress/Sakura/portfolio_nasio7/work/WordPress/plusers_wp/package.json
|
|
96
|
-
npm ERR! Failed to parse package.json data.
|
|
97
|
-
npm ERR! package.json must be actual JSON, not just JavaScript.
|
|
98
|
-
npm ERR!
|
|
99
|
-
npm ERR! Tell the package author to fix their package.json file. JSON.parse
|
|
100
90
|
|
|
101
|
-
npm ERR! A complete log of this run can be found in:
|
|
102
|
-
npm ERR! /Users/ユーザー名/.npm/_logs/2019-02-25T23_21_06_209Z-debug.log
|
|
103
|
-
[plusers_wp] npm run gulp 8:21:06 ☁ master ☂ ✭
|
|
104
|
-
npm ERR! file /Applications/MAMP/htdocs/webDevelopment/WordPress/Sakura/portfolio_nasio7/work/WordPress/plusers_wp/package.json
|
|
105
|
-
npm ERR! code EJSONPARSE
|
|
106
|
-
npm ERR! Failed to parse json
|
|
107
|
-
npm ERR! Unexpected token / in JSON at position 168 while parsing near '...ed\" && exit 1"
|
|
108
|
-
npm ERR! // "gulp": "gulp",
|
|
109
|
-
npm ERR! ...'
|
|
110
|
-
npm ERR! File: /Applications/MAMP/htdocs/webDevelopment/WordPress/Sakura/portfolio_nasio7/work/WordPress/plusers_wp/package.json
|
|
111
|
-
npm ERR! Failed to parse package.json data.
|
|
112
|
-
npm ERR! package.json must be actual JSON, not just JavaScript.
|
|
113
|
-
npm ERR!
|
|
114
|
-
npm ERR! Tell the package author to fix their package.json file. JSON.parse
|
|
115
|
-
|
|
116
|
-
npm ERR! A complete log of this run can be found in:
|
|
117
|
-
npm ERR! /Users/ユーザー名/.npm/_logs/2019-02-25T23_23_22_994Z-debug.log
|
|
118
|
-
[plusers_wp] npm start 8:23:23 ☁ master ☂ ✭
|
|
119
|
-
npm ERR! file /Applications/MAMP/htdocs/webDevelopment/WordPress/Sakura/portfolio_nasio7/work/WordPress/plusers_wp/package.json
|
|
120
|
-
npm ERR! code EJSONPARSE
|
|
121
|
-
npm ERR! Failed to parse json
|
|
122
|
-
npm ERR! Unexpected token / in JSON at position 168 while parsing near '...ed\" && exit 1"
|
|
123
|
-
npm ERR! // "gulp": "gulp",
|
|
124
|
-
npm ERR! ...'
|
|
125
|
-
npm ERR! File: /Applications/MAMP/htdocs/webDevelopment/WordPress/Sakura/portfolio_nasio7/work/WordPress/plusers_wp/package.json
|
|
126
|
-
npm ERR! Failed to parse package.json data.
|
|
127
|
-
npm ERR! package.json must be actual JSON, not just JavaScript.
|
|
128
|
-
npm ERR!
|
|
129
|
-
npm ERR! Tell the package author to fix their package.json file. JSON.parse
|
|
130
|
-
|
|
131
|
-
npm ERR! A complete log of this run can be found in:
|
|
132
|
-
npm ERR! /Users/ユーザー名/.npm/_logs/2019-02-25T23_23_34_299Z-debug.log
|
|
133
|
-
[plusers_wp] npm run gulp 8:23:40 ☁ master ☂ ✭
|
|
134
|
-
npm ERR! file /Applications/MAMP/htdocs/webDevelopment/WordPress/Sakura/portfolio_nasio7/work/WordPress/plusers_wp/package.json
|
|
135
|
-
npm ERR! code EJSONPARSE
|
|
136
|
-
npm ERR! Failed to parse json
|
|
137
|
-
npm ERR! Unexpected token s in JSON at position 164 while parsing near '...cified\" && exit 1",ss
|
|
138
|
-
npm ERR! "gulp": "gulp...'
|
|
139
|
-
npm ERR! File: /Applications/MAMP/htdocs/webDevelopment/WordPress/Sakura/portfolio_nasio7/work/WordPress/plusers_wp/package.json
|
|
140
|
-
npm ERR! Failed to parse package.json data.
|
|
141
|
-
npm ERR! package.json must be actual JSON, not just JavaScript.
|
|
142
|
-
npm ERR!
|
|
143
|
-
npm ERR! Tell the package author to fix their package.json file. JSON.parse
|
|
144
|
-
|
|
145
|
-
npm ERR! A complete log of this run can be found in:
|
|
146
|
-
npm ERR! /Users/ユーザー名/.npm/_logs/2019-02-25T23_24_16_396Z-debug.log
|
|
147
|
-
[plusers_wp] npm run gulp 8:24:16 ☁ master ☂ ✭
|
|
148
|
-
|
|
149
91
|
> plusers_wp@1.0.0 gulp /Applications/MAMP/htdocs/webDevelopment/WordPress/Sakura/portfolio_nasio7/work/WordPress/plusers_wp
|
|
150
92
|
> gulp
|
|
151
93
|
|
|
@@ -173,7 +115,7 @@
|
|
|
173
115
|
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
|
|
174
116
|
|
|
175
117
|
npm ERR! A complete log of this run can be found in:
|
|
176
|
-
npm ERR! /Users/ユーザー名/.npm/_logs/2019-02-
|
|
118
|
+
npm ERR! /Users/ユーザー名/.npm/_logs/2019-02-26T13_28_51_943Z-debug.log
|
|
177
119
|
```
|
|
178
120
|
|
|
179
121
|
**debug.log**
|
|
@@ -215,7 +157,6 @@
|
|
|
215
157
|
23 error Failed at the plusers_wp@1.0.0 gulp script.
|
|
216
158
|
23 error This is probably not a problem with npm. There is likely additional logging output above.
|
|
217
159
|
24 verbose exit [ 1, true ]
|
|
218
|
-
|
|
219
160
|
```
|
|
220
161
|
|
|
221
162
|
何かアドバイスいただけると助かります。
|