質問編集履歴

1

Failed at the @ css script.が出てきました

2021/02/02 20:28

投稿

ichiichiichi
ichiichiichi

スコア2

test CHANGED
File without changes
test CHANGED
@@ -10,13 +10,13 @@
10
10
 
11
11
  npm ERR! errno 1
12
12
 
13
- npm ERR! litacin@1.0.0 css-watch: `chokidar src/sass/ -c 'npm run css'`
13
+ npm ERR! aki@1.0.0 css-watch: `chokidar src/sass/ -c 'npm run css'`
14
14
 
15
15
  npm ERR! Exit status 1
16
16
 
17
17
  npm ERR!
18
18
 
19
- npm ERR! Failed at the litacin@1.0.0 css-watch script.
19
+ npm ERR! Failed at the aki@1.0.0 css-watch script.
20
20
 
21
21
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
22
22
 
@@ -28,7 +28,7 @@
28
28
 
29
29
 
30
30
 
31
- > litacin@1.0.0 pug-watch C:\Users\akio\sample\practice_coding\node\litacin
31
+ > aki@1.0.0 pug-watch C:\Users\akio\sample\practice_coding\node\aki
32
32
 
33
33
  > pug src/pug/ --hierarchy -o ${npm_package_config_path_dest} -w -P ' ' -E ${npm_package_config_pug_ext}
34
34
 
@@ -42,13 +42,13 @@
42
42
 
43
43
  npm ERR! errno 1
44
44
 
45
- npm ERR! litacin@1.0.0 pug-watch: `pug src/pug/ --hierarchy -o ${npm_package_config_path_dest} -w -P ' ' -E ${npm_package_config_pug_ext}`
45
+ 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}`
46
46
 
47
47
  npm ERR! Exit status 1
48
48
 
49
49
  npm ERR!
50
50
 
51
- npm ERR! Failed at the litacin@1.0.0 pug-watch script.
51
+ npm ERR! Failed at the aki@1.0.0 pug-watch script.
52
52
 
53
53
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
54
54
 
@@ -60,7 +60,7 @@
60
60
 
61
61
 
62
62
 
63
- > litacin@1.0.0 webpack-watch C:\Users\akio\sample\practice_coding\node\litacin
63
+ > aki@1.0.0 webpack-watch C:\Users\akio\sample\practice_coding\node\aki
64
64
 
65
65
  > webpack --watch
66
66
 
@@ -74,13 +74,13 @@
74
74
 
75
75
  npm ERR! errno 1
76
76
 
77
- npm ERR! litacin@1.0.0 webpack-watch: `webpack --watch`
77
+ npm ERR! aki@1.0.0 webpack-watch: `webpack --watch`
78
78
 
79
79
  npm ERR! Exit status 1
80
80
 
81
81
  npm ERR!
82
82
 
83
- npm ERR! Failed at the litacin@1.0.0 webpack-watch script.
83
+ npm ERR! Failed at the aki@1.0.0 webpack-watch script.
84
84
 
85
85
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
86
86
 
@@ -94,13 +94,13 @@
94
94
 
95
95
  npm ERR! errno 1
96
96
 
97
- npm ERR! litacin@1.0.0 watch: `npm run css-watch & npm run pug-watch & npm run webpack-watch`
97
+ npm ERR! aki@1.0.0 watch: `npm run css-watch & npm run pug-watch & npm run webpack-watch`
98
98
 
99
99
  npm ERR! Exit status 1
100
100
 
101
101
  npm ERR!
102
102
 
103
- npm ERR! Failed at the litacin@1.0.0 watch script.
103
+ npm ERR! Failed at the aki@1.0.0 watch script.
104
104
 
105
105
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
106
106
 
@@ -108,26 +108,92 @@
108
108
 
109
109
  npm ERR! A complete log of this run can be found in:
110
110
 
111
- npm ERR! C:\Users\akio\AppData\Roaming\npm-cache\_logs\2021-02-02T19_01_43_397Z-debug.log````````````> ここに言語を入力
111
+ npm ERR! C:\Users\akio\AppData\Roaming\npm-cache\_logs\2021-02-02T19_01_43_397Z-debug.log
112
-
113
- ここに言語を入力
114
-
115
- ```
116
-
117
- ここに言語を入力
118
-
119
- ```
120
-
121
- ここに言語を入力
122
-
123
- ```
124
-
125
- コード
126
-
127
- ```
128
112
 
129
113
  -------------------------------------------------------
130
114
 
131
115
 
132
116
 
133
117
  といったエラーが表示されます、Macで作成されたpackage.jsonはWindows10では動かないんでしょうか?
118
+
119
+
120
+
121
+ ---------------------------
122
+
123
+ そのあと調べて、Macで書かれたシングルクオーテーションがWindowsではエラーの原因となるので、解消するために、シングルクオーテーションの代わりに\"を書くという記事を見つけて、シングルクオーテーションを\"に書き換えました。
124
+
125
+ すると、上記のエラーは消えました。
126
+
127
+ npm run watchをして、Sassを記述すると、次にこのようなエラーが出ました。
128
+
129
+ どのように対処すればよろしいでしょうか?
130
+
131
+
132
+
133
+ C:\Users\akio\sample\practice_coding\node\aki>npm run watch
134
+
135
+
136
+
137
+ > @ watch C:\Users\akio\sample\practice_coding\node\aki
138
+
139
+ > npm run css-watch & npm run pug-watch & npm run webpack-watch
140
+
141
+
142
+
143
+
144
+
145
+ > @ css-watch C:\Users\akio\sample\practice_coding\node\aki
146
+
147
+ > chokidar src/sass/ -c "npm run css"
148
+
149
+
150
+
151
+ Watching "src/sass/" ..
152
+
153
+ change:src\sass\page\_company.scss
154
+
155
+
156
+
157
+ > @ css C:\Users\akio\sample\practice_coding\node\aki
158
+
159
+ > 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
160
+
161
+
162
+
163
+ Rendering Complete, saving .css file...
164
+
165
+ Wrote CSS to C:\Users\akio\sample\practice_coding\node\aki${npm_package_config_path_dest}\assets\css\style.css
166
+
167
+ Wrote 1 CSS files to C:\Users\akio\sample\practice_coding\node\aki${npm_package_config_path_dest}\assets\css
168
+
169
+ [Error: ENOENT: no such file or directory, open 'C:\Users\akio\sample\practice_coding\node\aki${npm_package_config_path_dest}\assets\css*.css'] {
170
+
171
+ errno: -4058,
172
+
173
+ code: 'ENOENT',
174
+
175
+ syscall: 'open',
176
+
177
+ path: 'C:\Users\akio\sample\practice_coding\node\aki\${npm_package_config_path_dest}\assets\css\*.css'
178
+
179
+ }
180
+
181
+ npm ERR! code ELIFECYCLE
182
+
183
+ npm ERR! errno 1
184
+
185
+ 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`
186
+
187
+ npm ERR! Exit status 1
188
+
189
+ npm ERR!
190
+
191
+ npm ERR! Failed at the @ css script.
192
+
193
+ npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
194
+
195
+
196
+
197
+ npm ERR! A complete log of this run can be found in:
198
+
199
+ npm ERR! C:\Users\akio\AppData\Roaming\npm-cache\_logs\2021-02-02T20_13_28_454Z-debug.log