The package webpack@2.1.0-beta.5 does not satisfy its siblings'

When I make run, I got ERROR:

npm ERR! peerinvalid The package webpack@2.1.0-beta.5 does not satisfy its siblings’ peerDependencies requirements!
npm ERR! peerinvalid Peer babel-loader@6.2.4 wants webpack@1 || ^2.1.0-beta
npm ERR! peerinvalid Peer extract-text-webpack-plugin@1.0.1 wants webpack@^1.9.11
npm ERR! peerinvalid Peer sass-loader@3.2.0 wants webpack@^1.12.6
npm ERR! peerinvalid Peer mocha-webpack@0.3.0 wants webpack@^1.12.13

Help me ,Please !

1 Like

Those errors should be fine. There is probably something else causing it to not run. Can you post a full log?

Thanks,
log:

userdeMacBook-Pro:platform user$ make run
Starting docker containers
Ldap test user test.one
Running mattermost for development
mkdir -p ./webapp/dist/files
/Users/user/gowork/bin/godep go run -ldflags “-X github.com/mattermost/platform/model.BuildNumber=dev -X ‘github.com/mattermost/platform/model.BuildDate=2016年 6月 1日 星期三 00时03分23秒 UTC’ -X github.com/mattermost/platform/model.BuildHash=cb745475452a9fc8ef3a9fedf6b34af7d05adba9 -X github.com/mattermost/platform/model.BuildEnterpriseReady=false” *.go &
Running mattermost client for development
cd ./webapp && /Applications/Xcode.app/Contents/Developer/usr/bin/make run
Getting dependencies using npm
npm install
godep: WARNING: Go version (go1.6) & $GO15VENDOREXPERIMENT= wants to enable the vendor experiment, but disabling because a Godep workspace (Godeps/_workspace) exists
[08:03:34 CST 2016/06/01] [EROR] (github.com/mattermost/platform/utils.GetTranslationsBySystemLocale:42) Failed to load system translations for ‘en’ attempting to fall back to ‘en’
[08:03:34 CST 2016/06/01] [INFO] (github.com/mattermost/platform/utils.GetTranslationsBySystemLocale:56) Loaded system translations for ‘en’ from ‘/Users/user/gowork/src/github.com/mattermost/platform/i18n/en.json’
[2016/06/01 08:03:34 CST] [INFO] Current version is 3.0.0 (dev/2016年 6月 1日 星期三 00时03分23秒 UTC/cb745475452a9fc8ef3a9fedf6b34af7d05adba9)
[2016/06/01 08:03:34 CST] [INFO] Enterprise Enabled: false
[2016/06/01 08:03:34 CST] [INFO] Current working directory is /Users/user/gowork/src/github.com/mattermost/platform
[2016/06/01 08:03:34 CST] [INFO] Loaded config file from /Users/user/gowork/src/github.com/mattermost/platform/config/config.json
[2016/06/01 08:03:34 CST] [INFO] Server is initializing…
[2016/06/01 08:03:34 CST] [INFO] Pinging sql master database
[2016/06/01 08:03:34 CST] [INFO] Pinging sql replica-0 database
[2016/06/01 08:03:34 CST] [DEBG] Deleting any unused pre-release features
[2016/06/01 08:03:34 CST] [DEBG] Initializing user api routes
[2016/06/01 08:03:34 CST] [DEBG] Initializing team api routes
[2016/06/01 08:03:34 CST] [DEBG] Initializing channel api routes
[2016/06/01 08:03:34 CST] [DEBG] Initializing post api routes
[2016/06/01 08:03:34 CST] [DEBG] Initializing web socket api routes
[2016/06/01 08:03:34 CST] [DEBG] Initializing file api routes
[2016/06/01 08:03:34 CST] [DEBG] Initializing command api routes
[2016/06/01 08:03:34 CST] [DEBG] Initializing admin api routes
[2016/06/01 08:03:34 CST] [DEBG] Initializing oauth api routes
[2016/06/01 08:03:34 CST] [DEBG] Initializing webhook api routes
[2016/06/01 08:03:34 CST] [DEBG] Initializing preference api routes
[2016/06/01 08:03:34 CST] [DEBG] Initializing license api routes
[2016/06/01 08:03:34 CST] [DEBG] Parsing server templates at /Users/user/gowork/src/github.com/mattermost/platform/templates/
[2016/06/01 08:03:34 CST] [DEBG] Initializing web routes
[2016/06/01 08:03:34 CST] [DEBG] Using client directory at /Users/user/gowork/src/github.com/mattermost/platform/webapp/dist/
[2016/06/01 08:03:34 CST] [INFO] Starting Server…
[2016/06/01 08:03:34 CST] [INFO] Server is listening on :8065
[2016/06/01 08:03:34 CST] [INFO] RateLimiter is enabled
npm ERR! Darwin 14.5.0
npm ERR! argv “/usr/local/nodejs/bin/node” “/usr/local/nodejs/bin/npm” "install"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package webpack@2.1.0-beta.5 does not satisfy its siblings’ peerDependencies requirements!
npm ERR! peerinvalid Peer babel-loader@6.2.4 wants webpack@1 || ^2.1.0-beta
npm ERR! peerinvalid Peer extract-text-webpack-plugin@1.0.1 wants webpack@^1.9.11
npm ERR! peerinvalid Peer sass-loader@3.2.0 wants webpack@^1.12.6
npm ERR! peerinvalid Peer mocha-webpack@0.3.0 wants webpack@^1.12.13

npm ERR! Please include the following file with any support request:
npm ERR! /Users/user/gowork/src/github.com/mattermost/platform/webapp/npm-debug.log
make[1]: *** [.npminstall] Error 1
make: *** [run-client] Error 2

Getting the same problem on Pi using 3.1 ( 9742382 ) (only it’s webpack@2.1.0-beta.7)

npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package webpack@2.1.0-beta.7 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer mocha-webpack@0.3.0 wants webpack@^1.12.13
npm ERR! peerinvalid Peer sass-loader@3.2.0 wants webpack@^1.12.6
npm ERR! peerinvalid Peer extract-text-webpack-plugin@1.0.1 wants webpack@^1.9.11
npm ERR! peerinvalid Peer babel-loader@6.2.4 wants webpack@1 || ^2.1.0-beta

Have edited webapp/package.json up to webpack 2.1.0-beta.13 and my build is running a lot longer. But it’s on a Pi2… so it’s taking it’s time.

TL;DR: update npm to > 3

Installing the node LTS package installs node 4.5 and npm 2.something. According to a couple of other posts I found via google, installing npm > 3 fixes this.

Either using npm install npm -g or installing a later version of node via NVM fixed this issue for me.

At the time of writing, I’m still not sure what the official version of node for this project is meant to be.