刚刚新建了一个webpack demo,想使用jshint来检测自己的js代码,发现总是提示Cannot find module 'jshint在执行多次的npm install jshint-loader --save-dev依然报错,作为新手想让大家帮我瞅瞅!module代码如下:module.exports = {module: {loaders: [ { test: /\.css$/, loaders: ['style', 'css?sourceMap'], include: APP_PATH }, { test: /\.(png|jpg)$/, loader: 'url?limit=40000' }, { test: /\.jsx?$/, loader: 'babel', include: APP_PATH, query: { presets: ['es2015'] } }],preLoaders: [ { test: /\.jsx?$/, include: APP_PATH, loader: 'jshint-loader' }]},jshint: { "esnext": true}};此时运行npm start,便出现下面的错误截图:
添加回答
举报
0/150
提交
取消