title: Composer error on update [UnexpectedValueException]
body: <p>I get this error when try to update composer.</p>
  
  <p>Im using the comand:</p>
  
  <pre><code>composer update -v --no-dev
  </code></pre>
  
  <p>And i get this error (stack trace) below:</p>
  
  <pre><code>Adding VCS repository npm-asset/lodash.uniq 
  Adding VCS repository npm-asset/lodash.without
  Adding VCS repository npm-asset/mississippi   
  Adding VCS repository npm-asset/mkdirp     
  
  
  [UnexpectedValueException]                                          
  Could not parse version constraint &amp;&amp;: Invalid version string "&amp;&amp;"  
  
  
  Exception trace:
   () at phar:///usr/local/bin/composer/vendor/composer/semver/src/VersionParser.php:485
   Composer\Semver\VersionParser-&gt;parseConstraint() at phar:///usr/local/bin/composer/vendor/composer/semver/src/VersionParser.php:244
   Composer\Semver\VersionParser-&gt;parseConstraints() at phar:///usr/local/bin/composer/src/Composer/Package/Version/VersionParser.php:28
   Composer\Package\Version\VersionParser-&gt;parseConstraints() at phar:///usr/local/bin/composer/src/Composer/Package/Loader/ArrayLoader.php:238
   Composer\Package\Loader\ArrayLoader-&gt;parseLinks() at phar:///usr/local/bin/composer/src/Composer/Package/Loader/ArrayLoader.php:122
   Composer\Package\Loader\ArrayLoader-&gt;load() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/NpmRepository.php:133
   Fxp\Composer\AssetPlugin\Repository\NpmRepository-&gt;createArrayRepositoryConfig() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/NpmRepository.php:79
   Fxp\Composer\AssetPlugin\Repository\NpmRepository-&gt;createVcsRepositoryConfig() at /root/.composer/vendor/fxp/composer-asset-plugin/Repository/AbstractAssetsRepository.php:136
   Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository-&gt;whatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:204
   Composer\DependencyResolver\Pool-&gt;computeWhatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:193
   Composer\DependencyResolver\Pool-&gt;whatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:161
   Composer\DependencyResolver\RuleSetGenerator-&gt;whitelistFromPackage() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:273
   Composer\DependencyResolver\RuleSetGenerator-&gt;whitelistFromJobs() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:324
   Composer\DependencyResolver\RuleSetGenerator-&gt;getRulesFor() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php:214
   Composer\DependencyResolver\Solver-&gt;solve() at phar:///usr/local/bin/composer/src/Composer/Installer.php:473
   Composer\Installer-&gt;doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:227
   Composer\Installer-&gt;run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:161
   Composer\Command\UpdateCommand-&gt;execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:242
   Symfony\Component\Console\Command\Command-&gt;run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:842
   Symfony\Component\Console\Application-&gt;doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:193
   Symfony\Component\Console\Application-&gt;doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:251
   Composer\Console\Application-&gt;doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
   Symfony\Component\Console\Application-&gt;run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:100
   Composer\Console\Application-&gt;run() at phar:///usr/local/bin/composer/bin/composer:58
   require() at /usr/local/bin/composer:24
  </code></pre>
  
  <p>Anybody can help me find out what to do with this?</p>
  
  <h1><strong>updating</strong></h1>
  
  <p>composer.json file:</p>
  
  <pre><code>
  {
      "name" : "yiisoft/yii2-app-basic",
      "description" : "Yii 2 Basic Project Template",
      "keywords" : [
          "yii2",
          "framework",
          "basic",
          "project template"
      ],
      "homepage" : "http://www.yiiframework.com/",
      "type" : "project",
      "license" : "BSD-3-Clause",
      "support" : {
          "issues" : "https://github.com/yiisoft/yii2/issues?state=open",
          "forum" : "http://www.yiiframework.com/forum/",
          "wiki" : "http://www.yiiframework.com/wiki/",
          "irc" : "irc://irc.freenode.net/yii",
          "source" : "https://github.com/yiisoft/yii2"
      },
      "minimum-stability" : "dev",
      "require" : {
          "php" : ">=5.4.0",
          "yiisoft/yii2" : ">=2.0.11",
          "yiisoft/yii2-bootstrap" : "@dev",
          "yiisoft/yii2-swiftmailer" : "@dev",
          "kartik-v/yii2-widget-select2" : "@dev",
          "kartik-v/yii2-grid" : "@dev",
          "kartik-v/yii2-krajee-base" : "@dev",
          "kartik-v/yii2-mpdf" : "v1.0.0",
          "kartik-v/yii2-editable" : "@dev",
          "kartik-v/yii2-tabs-x" : "@dev",
          "kartik-v/yii2-widget-fileinput" : "@dev",
          "kartik-v/yii2-money" : "*",
          "kartik-v/yii2-widget-datepicker" : "@dev",
          "kartik-v/yii2-widget-activeform" : "@dev",
          "kartik-v/yii2-widget-depdrop" : "@dev",
          "kartik-v/yii2-widgets" : "*",
          "kartik-v/yii2-widget-typeahead" : "*",
          "yiibr/yii2-br-validator" : "*",
          "kartik-v/yii2-builder" : "@dev",
          "softark/yii2-dual-listbox" : "dev-master",
          "kartik-v/yii2-widget-sidenav" : "*",
          "kartik-v/yii2-popover-x" : "@dev",
          "kartik-v/yii2-export" : "*",
          "kartik-v/yii2-detail-view" : "*",
          "bower-asset/Chart.js" : "*",
          "codeception/specify" : "*",
          "codeception/verify" : "*",
          "kartik-v/yii2-date-range" : "^1.6",
          "kartik-v/yii2-checkbox-x" : "*",
          "zendframework/zend-servicemanager" : "^2.7.5 || ^3.0.3",
          "bower-asset/toastr" : "^2.1",
          "cossou/jasperphp" : "2.3.0",
          "endroid/qr-code" : "~2.4.0",
          "nfephp-org/posprint" : "^0.1",
          "nfephp-org/sped-nfe" : "^4.1@dev",
          "nfephp-org/sped-da" : "*"
      },
      "require-dev" : {
          "codeception/codeception" : "2.1.*",
          "yiisoft/yii2-debug" : "*",
          "yiisoft/yii2-gii" : "*",
          "yiisoft/yii2-faker" : "*"
      },
      "config" : {
          "process-timeout" : 1800
      },
      "scripts" : {
          "post-create-project-cmd" : "yii\\composer\\Installer::postCreateProject"
      },
      "extra" : {
          "yii\\composer\\Installer::postCreateProject" : {
              "setPermission" : [{
                      "runtime" : "0777",
                      "web/assets" : "0777",
                      "yii" : "0755"
                  }
              ],
              "generateCookieValidationKey" : [
                  "config/web.php"
              ]
          },
          "asset-installer-paths" : {
              "npm-asset-library" : "vendor/npm",
              "bower-asset-library" : "vendor/bower"
          }
      }
  }
  </code></pre>
  
  <p>The composer is already updated to last version, and there seems to be no "&amp;&amp;" constraint error. When i run composer update on my local machine it works fine, but when i do the same on server it return this error.</p>