webpack-contrib / install-webpack-plugin

Speed up development by automatically installing & saving dependencies with Webpack.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running webpack after adding this plugin leads to endless loop

folmert opened this issue · comments

After I installed this plugin and added it to my webpack.config.js:

plugins:   [
        new NpmInstallPlugin(),
]

it tries to reinstall webpack over and over and doesn't stop:

C:\sites\YDR\branches\refactoring\development>webpack
Installing babel-loader...
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.15
npm WARN webpack-dev-server@1.16.2 requires a peer of webpack@>=1.3.0 <3 but none was installed.
npm WARN new-admin@1.0.0 No description
npm WARN new-admin@1.0.0 No repository field.
Installing peerDependencies...
Installing webpack@2.1.0-beta.27...
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.15
npm WARN webpack-dev-server@1.16.2 requires a peer of webpack@>=1.3.0 <3 but none was installed.
npm WARN new-admin@1.0.0 No description
npm WARN new-admin@1.0.0 No repository field.
Installing peerDependencies...
Installing webpack@2.1.0-beta.27...
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.15
npm WARN webpack-dev-server@1.16.2 requires a peer of webpack@>=1.3.0 <3 but none was installed.
npm WARN new-admin@1.0.0 No description
npm WARN new-admin@1.0.0 No repository field.
(....and it goes on and on....)

I assume it's because I'm including webpack at the beginning of my config?

var webpack = require('webpack');
var autoprefixer = require('autoprefixer');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var NpmInstallPlugin = require('npm-install-webpack-plugin');