ReferenceError: primordials is not defined
gulp 에러(gulp Error) gulp : 'gulp' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이
방법 1. 터미널 변경 [오류모음] npm : 'npm' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 VSCode와 Node.js 를 설치하고 간단한 프로젝트를 생성하기 위해 npm init을 쳤는데
shinye0213.tistory.com
방법 1. package.json 수정
[Gulp] ReferenceError: primordials is not defined in node 에러
문제 ReferenceError: primordials is not defined in node 라고 에러가 뙇! 떠서 당황당황 😣 검색해본 결과, Gulp 3 버전은 node 12 버전에서 제대로 동작하지 않는다고 합니다. 제가 작업한 환경은 node@11.13...
nykim.work
,
"scripts": {
"preinstall": "npx npm-force-resolutions"
},
"resolutions": {
"graceful-fs": "4.2.3"
}
방법 2. gulpfile.js 업데이트
How to fix ReferenceError: primordials is not defined in node
I have installed node modules by npm install, then I tried to do gulp sass-watch in command prompt. After that I got the below response. [18:18:32] Requiring external module babel-register fs.js:27
stackoverflow.com
// 전략
gulp.task('images', gulp.series(function(done) {
return gulp.src('assets/images/*')
.pipe(imagemin())
.pipe(gulp.dest('assets/built/images/'))
done();
}));
gulp.task('css', gulp.series(function(done) {
var processors = [
easyimport,
customProperties,
colorFunction(),
autoprefixer({browsers: ['last 2 versions']}),
cssnano()
];
return gulp.src('assets/css/*.css')
.pipe(sourcemaps.init())
.pipe(postcss(processors))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('assets/built/'))
done();
}));
Gulp 에러(gulp Error) Replace Autoprefixer browsers option to Browserslist config.
Gulp 에러(Gulp Error) ReferenceError: primordials is not defined gulp 에러(gulp Error) gulp : 'gulp' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이 방법 1. 터미널 변경 [오류모음]..
shinye0213.tistory.com
'개발(Web) > Web' 카테고리의 다른 글
[Ant Design] 앤트디자인 아이콘 에러/미표시 문제 (0) | 2021.03.10 |
---|---|
[Gulp] Replace Autoprefixer browsers option to Browserslist config. (0) | 2021.03.08 |
[Gulp] gulp : 'gulp' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 인식되 지 않습니다. 이름이 정확한지 확인하고 경로가 포함된 경우 경로가 올바른지 .. (0) | 2021.03.08 |
[Node.js] Error: Cannot find module 'moment' (0) | 2021.02.27 |
[Node.js] Error: Cannot find module 'cors' (0) | 2021.02.25 |