Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Block-scoped variables in strict mode are not supported until Node.js 4.0.0 and Unexpected var, use let or const instead. #6

Closed
parmarmitesh opened this issue Jul 2, 2020 · 0 comments

Comments

@parmarmitesh
Copy link

I am using npm version:- 6.14.5 and node version:- 12.16.1

Following are steps to build and test the maxmin package:

git clone https://github.com/sindresorhus/maxmin.git
cd maxmin
npm install
npm test

After performing npm test, I am getting following error, so can you help me please in this or suggest me steps if I missing something :

maxmin@2.1.0 test /maxmin

xo && ava

test.js:5:1
✖ 5:1 Block-scoped variables in strict mode are not supported until Node.js 4.0.0. The configured version range is >=0.12. node/no-unsupported-features/es-syntax
✖ 6:1 Block-scoped variables in strict mode are not supported until Node.js 4.0.0. The configured version range is >=0.12. node/no-unsupported-features/es-syntax
✖ 8:17 Arrow functions are not supported until Node.js 4.0.0. The configured version range is >=0.12. node/no-unsupported-features/es-syntax
✖ 13:17 Arrow functions are not supported until Node.js 4.0.0. The configured version range is >=0.12. node/no-unsupported-features/es-syntax
✖ 14:31 The Buffer.from is not supported until Node.js 4.5.0. The configured version range is >=0.12. node/no-unsupported-features/node-builtins
✖ 14:49 The Buffer.from is not supported until Node.js 4.5.0. The configured version range is >=0.12. node/no-unsupported-features/node-builtins
✖ 15:31 The Buffer.from is not supported until Node.js 4.5.0. The configured version range is >=0.12. node/no-unsupported-features/node-builtins
✖ 15:49 The Buffer.from is not supported until Node.js 4.5.0. The configured version range is >=0.12. node/no-unsupported-features/node-builtins
✖ 18:18 Arrow functions are not supported until Node.js 4.0.0. The configured version range is >=0.12. node/no-unsupported-features/es-syntax

index.js:2:1
✖ 2:1 Unexpected var, use let or const instead. no-var
✖ 3:1 Unexpected var, use let or const instead. no-var
✖ 4:1 Unexpected var, use let or const instead. no-var
✖ 5:1 Unexpected var, use let or const instead. no-var
✖ 6:1 Unexpected var, use let or const instead. no-var
✖ 13:2 Unexpected var, use let or const instead. no-var
✖ 13:6 The variable ret should be named returnValue. A more descriptive name will do too. unicorn/prevent-abbreviations

16 errors
npm ERR! Test failed. See above for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant