Could not proceed with gulp build in windows node 8.17 #5111
Labels
sample: react-personal-greeting
type:bug-suspected
Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs
Disclaimer
Yes
Sample
samples/react-personal-greeting
Contributor(s)
@zachroberts8668
What happened?
Facing the following error on using gulp build command
gulp build
Error Details:
\node_modules\gulp-cli\node_modules\yargs-parser\build\index.cjs:1007
throw Error(
yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions
);^
Error: yargs parser supports a minimum Node.js version of 10. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions
at Object. (C:\Users\s\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\yargs-parser\build\index.cjs:1007:15)
at Module._compile (module.js:653:30)
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. (C:\Users\s\AppData\Roaming\npm\node_modules\gulp-cli\node_modules\yargs\build\index.cjs:2855:16)
at Module._compile (module.js:653:30)
Steps to reproduce
Node Version: 8.17
(initially node 14 was used. since received an error to downgrade it to atleast 8. have reduced it)
Expected behavior
All the build should be completed successfully and should produce the relevant package for the sample
Target SharePoint environment
SharePoint Online
Developer environment
Windows
Browsers
What version of Node.js is currently installed on your workstation?
8.17
What version of Node.js is required by the sample?
Paste the results of SPFx doctor
import { cli } from './cli/cli.js';
^^^^^^
SyntaxError: Unexpected token import
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 Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
Additional environment details
No response
The text was updated successfully, but these errors were encountered: