I am working on the SharePoint Framework Tutorial 1 for the Hello World Web Part. When running the build command gulp serve to build and preview the webpart I get the following error "Cannot find module '@microsoft/sp-build-web'".
Here are the details:
PS C:\src\spfm\helloworld-webpart> gulp serve module.js:327 throw err; ^ Error: Cannot find module '@microsoft/sp-build-web' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (C:\src\spfm\helloworld-webpart\gulpfile.js:4:15) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17)
I've checked the project structure and under the node_modules/@microsoft path I can see the following folders but not sp-build-web
- sp-client-base
- sp-client-preview
- sp=modules-interface
- sp-webpart-workbench
Any ideas?