SPFx solution is giving error while cleaning the solution

时间:2018-06-04 16:41:53

标签: sharepoint visual-studio-code spfx

I have created a SharePoint extension with SPFx framework. initially I ran the solution and it is working fine. But in second run I want to clean the solution. So I executed gulp clean command, but it is failing and producing different kind of errors seems each time. Sometimes error is coming on gulp package-solution, sometimes with gulp build command. Below is sample error:

Error - Unknown
 EPERM: operation not permitted, open 'E:\Practice\SharePoint\SPFx\Extensions2\HeaderFooter\temp\deploy\sp-fx-header-footer-application-customizer_4851d776c4c9f9fd9ef72c1f266114dc.js'

1 个答案:

答案 0 :(得分:0)

删除临时文件夹并再次尝试gulp build。 每当我们使用gulp bundle或gulp package-solution捆绑js文件时,都会创建临时文件夹。它还会创建一个部署文件夹。该文件夹中的Js文件将在部署时粘贴到cdn文件夹。