質問編集履歴
1
Failed at the @ css script.が出てきました
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,64 +4,97 @@
|
|
4
4
|
操作可能なプログラムまたはバッチ ファイルとして認識されていません。
|
5
5
|
npm ERR! code ELIFECYCLE
|
6
6
|
npm ERR! errno 1
|
7
|
-
npm ERR!
|
7
|
+
npm ERR! aki@1.0.0 css-watch: `chokidar src/sass/ -c 'npm run css'`
|
8
8
|
npm ERR! Exit status 1
|
9
9
|
npm ERR!
|
10
|
-
npm ERR! Failed at the
|
10
|
+
npm ERR! Failed at the aki@1.0.0 css-watch script.
|
11
11
|
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
|
12
12
|
|
13
13
|
npm ERR! A complete log of this run can be found in:
|
14
14
|
npm ERR! C:\Users\akio\AppData\Roaming\npm-cache\_logs\2021-02-02T19_01_33_629Z-debug.log
|
15
15
|
|
16
|
-
>
|
16
|
+
> aki@1.0.0 pug-watch C:\Users\akio\sample\practice_coding\node\aki
|
17
17
|
> pug src/pug/ --hierarchy -o ${npm_package_config_path_dest} -w -P ' ' -E ${npm_package_config_pug_ext}
|
18
18
|
|
19
19
|
'pug' は、内部コマンドまたは外部コマンド、
|
20
20
|
操作可能なプログラムまたはバッチ ファイルとして認識されていません。
|
21
21
|
npm ERR! code ELIFECYCLE
|
22
22
|
npm ERR! errno 1
|
23
|
-
npm ERR!
|
23
|
+
npm ERR! aki@1.0.0 pug-watch: `pug src/pug/ --hierarchy -o ${npm_package_config_path_dest} -w -P ' ' -E ${npm_package_config_pug_ext}`
|
24
24
|
npm ERR! Exit status 1
|
25
25
|
npm ERR!
|
26
|
-
npm ERR! Failed at the
|
26
|
+
npm ERR! Failed at the aki@1.0.0 pug-watch script.
|
27
27
|
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
|
28
28
|
|
29
29
|
npm ERR! A complete log of this run can be found in:
|
30
30
|
npm ERR! C:\Users\akio\AppData\Roaming\npm-cache\_logs\2021-02-02T19_01_38_483Z-debug.log
|
31
31
|
|
32
|
-
>
|
32
|
+
> aki@1.0.0 webpack-watch C:\Users\akio\sample\practice_coding\node\aki
|
33
33
|
> webpack --watch
|
34
34
|
|
35
35
|
'webpack' は、内部コマンドまたは外部コマンド、
|
36
36
|
操作可能なプログラムまたはバッチ ファイルとして認識されていません。
|
37
37
|
npm ERR! code ELIFECYCLE
|
38
38
|
npm ERR! errno 1
|
39
|
-
npm ERR!
|
39
|
+
npm ERR! aki@1.0.0 webpack-watch: `webpack --watch`
|
40
40
|
npm ERR! Exit status 1
|
41
41
|
npm ERR!
|
42
|
-
npm ERR! Failed at the
|
42
|
+
npm ERR! Failed at the aki@1.0.0 webpack-watch script.
|
43
43
|
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
|
44
44
|
|
45
45
|
npm ERR! A complete log of this run can be found in:
|
46
46
|
npm ERR! C:\Users\akio\AppData\Roaming\npm-cache\_logs\2021-02-02T19_01_43_127Z-debug.log
|
47
47
|
npm ERR! code ELIFECYCLE
|
48
48
|
npm ERR! errno 1
|
49
|
-
npm ERR!
|
49
|
+
npm ERR! aki@1.0.0 watch: `npm run css-watch & npm run pug-watch & npm run webpack-watch`
|
50
50
|
npm ERR! Exit status 1
|
51
51
|
npm ERR!
|
52
|
-
npm ERR! Failed at the
|
52
|
+
npm ERR! Failed at the aki@1.0.0 watch script.
|
53
53
|
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
|
54
54
|
|
55
55
|
npm ERR! A complete log of this run can be found in:
|
56
|
-
npm ERR! C:\Users\akio\AppData\Roaming\npm-cache\_logs\2021-02-02T19_01_43_397Z-debug.log
|
56
|
+
npm ERR! C:\Users\akio\AppData\Roaming\npm-cache\_logs\2021-02-02T19_01_43_397Z-debug.log
|
57
|
-
ここに言語を入力
|
58
|
-
```
|
59
|
-
ここに言語を入力
|
60
|
-
```
|
61
|
-
ここに言語を入力
|
62
|
-
```
|
63
|
-
コード
|
64
|
-
```
|
65
57
|
-------------------------------------------------------
|
66
58
|
|
67
|
-
といったエラーが表示されます、Macで作成されたpackage.jsonはWindows10では動かないんでしょうか?
|
59
|
+
といったエラーが表示されます、Macで作成されたpackage.jsonはWindows10では動かないんでしょうか?
|
60
|
+
|
61
|
+
---------------------------
|
62
|
+
そのあと調べて、Macで書かれたシングルクオーテーションがWindowsではエラーの原因となるので、解消するために、シングルクオーテーションの代わりに\"を書くという記事を見つけて、シングルクオーテーションを\"に書き換えました。
|
63
|
+
すると、上記のエラーは消えました。
|
64
|
+
npm run watchをして、Sassを記述すると、次にこのようなエラーが出ました。
|
65
|
+
どのように対処すればよろしいでしょうか?
|
66
|
+
|
67
|
+
C:\Users\akio\sample\practice_coding\node\aki>npm run watch
|
68
|
+
|
69
|
+
> @ watch C:\Users\akio\sample\practice_coding\node\aki
|
70
|
+
> npm run css-watch & npm run pug-watch & npm run webpack-watch
|
71
|
+
|
72
|
+
|
73
|
+
> @ css-watch C:\Users\akio\sample\practice_coding\node\aki
|
74
|
+
> chokidar src/sass/ -c "npm run css"
|
75
|
+
|
76
|
+
Watching "src/sass/" ..
|
77
|
+
change:src\sass\page\_company.scss
|
78
|
+
|
79
|
+
> @ css C:\Users\akio\sample\practice_coding\node\aki
|
80
|
+
> node-sass src/sass -o ${npm_package_config_path_dest}/assets/css --importer node_modules/node-sass-globbing/index.js --output-style expanded && postcss ${npm_package_config_path_dest}/assets/css/*.css -o ${npm_package_config_path_dest}/assets/css/*.css --no-map --use autoprefixer && csscomb ${npm_package_config_path_dest}/assets/css/*.css
|
81
|
+
|
82
|
+
Rendering Complete, saving .css file...
|
83
|
+
Wrote CSS to C:\Users\akio\sample\practice_coding\node\aki${npm_package_config_path_dest}\assets\css\style.css
|
84
|
+
Wrote 1 CSS files to C:\Users\akio\sample\practice_coding\node\aki${npm_package_config_path_dest}\assets\css
|
85
|
+
[Error: ENOENT: no such file or directory, open 'C:\Users\akio\sample\practice_coding\node\aki${npm_package_config_path_dest}\assets\css*.css'] {
|
86
|
+
errno: -4058,
|
87
|
+
code: 'ENOENT',
|
88
|
+
syscall: 'open',
|
89
|
+
path: 'C:\Users\akio\sample\practice_coding\node\aki\${npm_package_config_path_dest}\assets\css\*.css'
|
90
|
+
}
|
91
|
+
npm ERR! code ELIFECYCLE
|
92
|
+
npm ERR! errno 1
|
93
|
+
npm ERR! @ css: `node-sass src/sass -o ${npm_package_config_path_dest}/assets/css --importer node_modules/node-sass-globbing/index.js --output-style expanded && postcss ${npm_package_config_path_dest}/assets/css/*.css -o ${npm_package_config_path_dest}/assets/css/*.css --no-map --use autoprefixer && csscomb ${npm_package_config_path_dest}/assets/css/*.css`
|
94
|
+
npm ERR! Exit status 1
|
95
|
+
npm ERR!
|
96
|
+
npm ERR! Failed at the @ css script.
|
97
|
+
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
|
98
|
+
|
99
|
+
npm ERR! A complete log of this run can be found in:
|
100
|
+
npm ERR! C:\Users\akio\AppData\Roaming\npm-cache\_logs\2021-02-02T20_13_28_454Z-debug.log
|