Публикации по теме 'error-handling'
NPM: Ошибка: SyntaxError: Объявления с блочной областью видимости (let, const, function, class) еще не…
Примечание для себя, но надеюсь, что это также поможет кому-то :)
Если вы обнаружили эту ошибку ..
$ npm
/usr/local/lib/node_modules/npm/bin/npm-cli.js:82
let notifier = require('update-notifier')({pkg})
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at..