この部分が主なエラー部分ですが、lint:cssが間違っているということでしょうか。
該当記事を参考にしましたが、エラーの意味がよくわからず。。
npm
1npm ERR! errno 2 2npm ERR! gulptest@1.0.0 lint:css: `stylelint ./src/scss/**/*.scss` 3npm ERR! Exit status 2 4npm ERR! 5npm ERR! Failed at the gulptest@1.0.0 lint:css script. 6npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 7
.stylelintrc.json↓
stylelintrcJSON
1{ 2 "extends": "stylelint-config-recommended-scss" 3}
package.json↓
packageJSON
1{ 2 "name": "gulptest", 3 "version": "1.0.0", 4 "description": "", 5 "main": "index.js", 6 "scripts": { 7 "test": "echo \"Error: no test specified\" && exit 1", 8 "lint:css": "stylelint ./src/scss/**/*.scss" 9 }, 10 "keywords": [], 11 "author": "", 12 "license": "ISC", 13 "devDependencies": { 14 "browser-sync": "^2.26.7", 15 "gulp": "^4.0.2", 16 "gulp-autoprefixer": "^7.0.1", 17 "gulp-cssbeautify": "^2.0.1", 18 "gulp-html-beautify": "^1.0.1", 19 "gulp-notify": "^3.2.0", 20 "gulp-plumber": "^1.2.1", 21 "gulp-pug": "^4.0.1", 22 "gulp-sass": "^4.1.0", 23 "gulp-sass-glob": "^1.1.0", 24 "gulp-stylelint": "^13.0.0", 25 "gulp-uglify": "^3.0.2", 26 "stylelint": "^13.6.1", 27 "stylelint-config-recess-order": "^2.0.4", 28 "stylelint-config-recommended": "^3.0.0", 29 "stylelint-config-recommended-scss": "^4.2.0", 30 "stylelint-config-standard": "^20.0.0", 31 "stylelint-scss": "^3.18.0" 32 }, 33 "browserslist": [ 34 "last 2 versions", 35 "Explorer 11", 36 "iOS 9.0", 37 "Android 4.1" 38 ] 39} 40
全文のnpmコードは以下です。
どうかよろしくお願いいたします。
npm
1fuhixx-2:gulptest-beautify fuhixx$ npm run lint:css 2 3> gulptest@1.0.0 lint:css /Users/fuhixx/gulp成功保管ファイル/gulptest-beautify 4> stylelint ./src/scss/**/*.scss 5 6 7src/scss/foundation/_reset.scss 8 151:1 ✖ Expected selector "ul" to come before no-descending-specificity 9 selector "nav ul" 10 162:1 ✖ Unexpected duplicate selector "a", first no-duplicate-selectors 11 used at line 60 12 179:1 ✖ Unexpected duplicate selector "table", no-duplicate-selectors 13 first used at line 92 14 15npm ERR! code ELIFECYCLE 16npm ERR! errno 2 17npm ERR! gulptest@1.0.0 lint:css: `stylelint ./src/scss/**/*.scss` 18npm ERR! Exit status 2 19npm ERR! 20npm ERR! Failed at the gulptest@1.0.0 lint:css script. 21npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 22 23npm ERR! A complete log of this run can be found in: 24npm ERR! /Users/fuhixx/.npm/_logs/2020-06-29T22_08_39_289Z-debug.log 25fuhixx-2:gulptest-beautify fuhixx$ 26
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/06/30 00:25