Regarding SPFX - gulp package-solution

%3CLINGO-SUB%20id%3D%22lingo-sub-863465%22%20slang%3D%22en-US%22%3ERegarding%20SPFX%20-%20gulp%20package-solution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-863465%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20There%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20would%20like%20to%20package%20my%20SPFX%20WebPart%20(%3CEM%3E%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Fjs-skype-status%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Fjs-skype-status%3C%2FA%3E%3C%2FFONT%3E%3C%2FEM%3E)%2C%20and%20the%20document%20says%20%22%3CEM%3E%3CSPAN%3EAfter%20copying%20that%20sample%20to%20your%20local%20machine%20and%20running%20%3C%2FSPAN%3Enpm%20install%3CSPAN%3E%20to%20install%20the%20dependencies%3C%2FSPAN%3E%3C%2FEM%3E%22%20so%20I%20run%20the%20%22%3CSTRONG%3E%3CEM%3Enpm%20install%3C%2FEM%3E%3C%2FSTRONG%3E%22%20and%20finally%20perform%20the%20command%20%3A%26nbsp%3B%3CFONT%3E%3CSTRONG%3E%3CEM%3Egulp%20package-solution%3C%2FEM%3E%3C%2FSTRONG%3E.%20Meantime%2C%20I%20got%20the%20following%20error%20...%20Is%20there%20anyone%20who%20has%20any%20idea%20on%20it%3F%3F%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3EMy%20node.js%20version%20is%2010.16.3%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%3EMy%20npm%20version%20is%206.11.3%20(the%20lasted%20one)%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3E%22%3C%2FFONT%3E%3C%2FP%3E%3CDIV%3E%3CFONT%3Einternal%2Futil%2Finspect.js%3A31%3CBR%20%2F%3Econst%20types%20%3D%20internalBinding('types')%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%5E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%3EReferenceError%3A%20internalBinding%20is%20not%20defined%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20internal%2Futil%2Finspect.js%3A31%3A15%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20req_%20(C%3A%5CUsers%5CAdministrator%5Csource%5Crepos%5Cspfx%5Cjs-skype-status%5Cnode_modules%5Cnatives%5Cindex.js%3A137%3A5)%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20require%20(C%3A%5CUsers%5CAdministrator%5Csource%5Crepos%5Cspfx%5Cjs-skype-status%5Cnode_modules%5Cnatives%5Cindex.js%3A110%3A12)%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20util.js%3A25%3A21%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20req_%20(C%3A%5CUsers%5CAdministrator%5Csource%5Crepos%5Cspfx%5Cjs-skype-status%5Cnode_modules%5Cnatives%5Cindex.js%3A137%3A5)%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20require%20(C%3A%5CUsers%5CAdministrator%5Csource%5Crepos%5Cspfx%5Cjs-skype-status%5Cnode_modules%5Cnatives%5Cindex.js%3A110%3A12)%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20fs.js%3A42%3A21%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20req_%20(C%3A%5CUsers%5CAdministrator%5Csource%5Crepos%5Cspfx%5Cjs-skype-status%5Cnode_modules%5Cnatives%5Cindex.js%3A137%3A5)%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Object.req%20%5Bas%20require%5D%20(C%3A%5CUsers%5CAdministrator%5Csource%5Crepos%5Cspfx%5Cjs-skype-status%5Cnode_modules%5Cnatives%5Cindex.js%3A54%3A10)%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Object.%20(C%3A%5CUsers%5CAdministrator%5Csource%5Crepos%5Cspfx%5Cjs-skype-status%5Cnode_modules%5Cvinyl-fs%5Cnode_modules%5Cgraceful-fs%5Cfs.js%3A1%3A37)%3C%2FFONT%3E%3C%2FDIV%3E%3CP%3E%3CFONT%3E%22%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-863465%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-867253%22%20slang%3D%22en-US%22%3ERe%3A%20Regarding%20SPFX%20-%20gulp%20package-solution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-867253%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F180999%22%20target%3D%22_blank%22%3E%40Will%20%23%20_________%20H%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%20thing%20to%20try%20-%20delete%20node_modules%20and%20package-lock.json%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20that%2C%20install%20everything%20again%20and%20try%20packaging%20your%20solution.%20If%20that%20doesn't%20work%2C%20try%20explicitly%20updating%20natives%20to%201.1.6%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Erm%20rf%20node_modules%0Arm%20rf%20package-lock.json%0Anpm%20i%0Anpm%20install%20natives%401.1.6%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hi There,

 

When I would like to package my SPFX WebPart (https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/js-skype-status), and the document says "After copying that sample to your local machine and running npm install to install the dependencies" so I run the "npm install" and finally perform the command : gulp package-solution. Meantime, I got the following error ... Is there anyone who has any idea on it?? 

 

My node.js version is 10.16.3

My npm version is 6.11.3 (the lasted one)

 

"

internal/util/inspect.js:31
const types = internalBinding('types');
              ^
ReferenceError: internalBinding is not defined
    at internal/util/inspect.js:31:15
    at req_ (C:\Users\Administrator\source\repos\spfx\js-skype-status\node_modules\natives\index.js:137:5)
    at require (C:\Users\Administrator\source\repos\spfx\js-skype-status\node_modules\natives\index.js:110:12)
    at util.js:25:21
    at req_ (C:\Users\Administrator\source\repos\spfx\js-skype-status\node_modules\natives\index.js:137:5)
    at require (C:\Users\Administrator\source\repos\spfx\js-skype-status\node_modules\natives\index.js:110:12)
    at fs.js:42:21
    at req_ (C:\Users\Administrator\source\repos\spfx\js-skype-status\node_modules\natives\index.js:137:5)
    at Object.req [as require] (C:\Users\Administrator\source\repos\spfx\js-skype-status\node_modules\natives\index.js:54:10)
    at Object. (C:\Users\Administrator\source\repos\spfx\js-skype-status\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:37)

"

1 Reply
Highlighted

@Will # _________ H 

 

First thing to try - delete node_modules and package-lock.json

 

After that, install everything again and try packaging your solution. If that doesn't work, try explicitly updating natives to 1.1.6

 

rm rf node_modules
rm rf package-lock.json
npm i
npm install natives@1.1.6