-
-
Notifications
You must be signed in to change notification settings - Fork 957
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
GOT require issue #1084
Comments
as i see GOT works fine in node 12+ , in case got does not support older version on nodejs, then please highlight and mention it in the documentation. |
Got already indicates the required Node.js version in package.json |
I ran the following command on 2 versions. npm install -g bootprint With node version v8.9.1, this is not working. With the node version v10.16.3 the above codes are working. |
I got the same error in NodeJS v15.14.0 and latest Got
|
Describe the bug
Actual behavior
gives below error
/node_modules/got/dist/source/create.js:101
got.paginate = async function* (url, options) {
^
SyntaxError: Unexpected token *
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.
...
Expected behavior
console.log should print object information about got
...
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: