SOLVED

SharePoint Framework development without access to internet

%3CLINGO-SUB%20id%3D%22lingo-sub-1933518%22%20slang%3D%22en-US%22%3ESharePoint%20Framework%20development%20without%20access%20to%20internet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1933518%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20Ladies%20and%20Gentlemen%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eis%20there%20a%20safe%20way%20how%20to%20develop%20SharePoint%20Framework%20applications%20without%20access%20to%20internet%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20your%20answer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20best%20regards%3C%2FP%3E%3CP%3ELadislav%20Stupak%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1934464%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Framework%20development%20without%20access%20to%20internet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1934464%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F824507%22%20target%3D%22_blank%22%3E%40LadislavStupak%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20you%20will%20need%20internet%20for%20SharePoint%20framework%20development.%20Especially%20for%20initial%20setup.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20you%20will%20need%20internet%20for%20downloading%20npm%20packages%20for%20first%20time%20(Or%20maybe%20you%20can%20achieve%20this%20using%20workarounds%20like%20%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F23250805%2Fhow-to-install-nodejs-project-locally-without-internet-connection%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ethis%3C%2FA%3E%26nbsp%3Band%20%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F43064107%2Fhow-to-install-npm-package-while-offline%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ethis%3C%2FA%3E).%20Then%20you%20can%20copy%20node%20modules%20folder%20with%20dependencies%20to%20your%20other%20project%20folders.%20Alternatively%2C%20you%20can%20also%20use%20Yarn-offline-mirror%20method%20(%3CA%20href%3D%22https%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F269853%2Fhow-can-i-use-yarn-to-download-sharepoint-framework-spfx-dependencies-for-off%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EReference%3C%2FA%3E).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EO%3CSPAN%3Ence%20you%20are%20done%20with%20initial%20setup%20then%20you%20won't%20need%20internet%20while%20you%20are%20developing%20your%20SPFx%20components.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EBut%20you%20will%20again%20need%20internet%20for%20debugging%20on%20SharePoint%20workbench%20and%20deploying%20solutions%20to%20SharePoint%20environment.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAlso%20check%20below%20github%20thread%20which%20has%20some%20good%20information%20related%20to%20this%20topic%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-docs%2Fissues%2F1235%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ESupport%20for%20offline%20creation%20of%20SPFx%20solutions%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%20%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20to%20solve%20your%20issue.%20This%20will%20help%20others%20to%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20post%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Dear Ladies and Gentlemen,

 

is there a safe way how to develop SharePoint Framework applications without access to internet?

 

Thank you very much for your answer.

 

With best regards

Ladislav Stupak

1 Reply
Best Response confirmed by LadislavStupak (Occasional Contributor)
Solution

@LadislavStupak 

 

I think you will need internet for SharePoint framework development. Especially for initial setup.

 

Then you will need internet for downloading npm packages for first time (Or maybe you can achieve this using workarounds like this and this). Then you can copy node modules folder with dependencies to your other project folders. Alternatively, you can also use Yarn-offline-mirror method (Reference). 

 

Once you are done with initial setup then you won't need internet while you are developing your SPFx components.

 

But you will again need internet for debugging on SharePoint workbench and deploying solutions to SharePoint environment.

 

Also check below github thread which has some good information related to this topic: Support for offline creation of SPFx solutions 


Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.