[Vuejs]-When I run npm install in Laravel project, It shows an error – npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated – replace it

0👍

Actually, the problem came when they deprecated gulp-util with version 3.0.8 and announced a new version 4.0.0 which is still in alpha stage.So, the move wasn’t calculated well and it lead to a much bigger problem because of many plugins dependent on gulp-util-3.0.8.

So now to solve the issue, just change your app.js to below mentioned code

import Vue from 'vue';
import ExampleComponent from './components/ExampleComponent.vue';

require('./bootstrap');

window.Vue = Vue;

Vue.component('example-component', ExampleComponent);

const app = new Vue({
    el: '#app'
});

It will solve your problem for npm install

Leave a comment