Got a following error after installing the SPFx environment for the first time
any help would be helpful. Thanks in Advance.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Check what is your NodeJS version
NodeJS has two LTS versions - 8 and 10. The current supported LTS version of NodeJS for the SharePoint Framework is 8.x and can be downloaded from https://nodejs.org/en/download/releases/. Notice that 9.x or 10.x versions are currently not supported with SharePoint Framework development.
If you NodeJS version is 8.x and still facing issue, Ran install command manually.
npm install @microsoft/sp-build-web
Also try to run 'npm install --save-dev' on your project folder.
npm install --save-dev
if above 2 does not work, check this link it some other solutions also.
Hope this helps...happy coding!!!
Try this might be helpful
If it's not working then please uninstall nodejs and reinstall from scratch and try.