ошибка версии метеорита - PullRequest
0 голосов
/ 11 мая 2018

ОШИБКА

При чтении пакета из /home/meteor/rschtml5_2018-05-07_18:41/ageroRSCHTML/packages/npm-container: package.js: 15: 7: необходимо объявить точную версию зависимости: зависимости @ [объект объекта]

сильный текст

var path = Npm.require('path');
var fs = Npm.require('fs');

Package.describe({
  summary: 'Contains all your npm dependencies',
     version: '1.0.0',
//  version: '3.10.10',
  name: 'npm-container'
});

var packagesJsonFile = path.resolve('./packages.json');
try {
  var fileContent = fs.readFileSync(packagesJsonFile);
  var packages = JSON.parse(fileContent.toString());
  Npm.depends(packages);
} catch (ex) {
  console.error('ERROR: packages.json parsing error [ ' + ex.message + ' ]');
}

// Adding the app's packages.json as a used file for this package will get
// Meteor to watch it and reload this package when it changes
Package.onUse(function(api) {
  api.add_files(['index.js', '../../packages.json'], 'server');
});
...