If you run "gulp bundle" for your SPFx project and face with the following error:
No such file or directory "node_modules\@microsoft\gulp-core-build-sass\node_modules\node-sass\vendor"
Try to run the following command first:
node node_modules\@microsoft\gulp-core-build-sass\node_modules\node-sass\scripts\install.js
It will create "vendor" subfolder under "node_modules\@microsoft\gulp-core-build-sass\node_modules\node-sass" and will download necessary binaries there:
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-64_binding.node Download complete Binary saved to ...\node_modules\@microsoft\gulp-core-build-sass\node_modules\node-sass\vendor\win32-x64-64\binding.node
After that "gulp bundle" command should work.
No comments:
Post a Comment