{"id":2152,"date":"2020-06-03T09:03:00","date_gmt":"2020-06-03T09:03:00","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=2152"},"modified":"2022-02-03T11:24:25","modified_gmt":"2022-02-03T17:24:25","slug":"first-sharepoint-spfx-hassles","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/","title":{"rendered":"First Sharepoint SPFx hassles"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">What a nightmare. First, if you have Visual Studio &#8211; you have to have a new product and like most Microsoft Coding products it has a name SO CLOSE to the familiar &#8211; you have a watch a video to figure it out. VISUAL STUDIO (that is used to code) IS NOT THE SAME AS <a href=\"https:\/\/code.visualstudio.com\/docs\/?dv=win64user\">VISUAL STUDIO CODE<\/a> (download and install that first).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You have to run node 8.x or 10.x as per this <a href=\"https:\/\/docs.microsoft.com\/en-us\/sharepoint\/dev\/spfx\/set-up-your-development-environment\">Microsoft Article<\/a> &#8211; it happened when I went to <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>gulp trust-dev-cert<\/code> and it gave me the gears.<\/p>\n\n\n\n<p style=\"color:#a30003\" class=\"has-text-color wp-block-paragraph\">DONT USE THIS!!!! To change node version on windows use <a href=\"https:\/\/github.com\/nullivex\/nodist\">nodist<\/a> (install it using <a href=\"https:\/\/chocolatey.org\/\">chocolatey<\/a>) and run<code>choco install nodist<\/code>Then run a new powershell. If you run into &#8220;The file C:\\Program Files (x86)\\Nodist\\bin\\nodist.ps1 is not digitally signed&#8221; then run &#8211;END DONT USE<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">then downgrade to npm 10.20.1 Well that didn&#8217;t work &#8211; so lets get <a href=\"https:\/\/github.com\/coreybutler\/nvm-windows\/tree\/1.1.7\">nvm-windows<\/a> installed. Keep reading (yes &#8211; nvm-windows worked). <\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">Remember to delete all nvm, npm and node from %APPDATA%\\Local, %APPDATA%\\Roaming and c:\\Program files and the %USERNAME%\\.npmrc &#8230; everthing. Even ENVIRONMENT VARIABLES &#8230; UNINSTALL EVERYTHING TO DO WITH NODE FIRST. Choose the .zip download with setup AS ADMINISTRATOR.  Once installed<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>nvm list<br>nvm install 10.20.1<br>nvm use 10.20.1<\/code><br>node -v <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start Visual Studio &#8211; then go to Tools-&gt;Powershell Prompt (no that is not clear in the instructions)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Reinstall all our npm&#8217;s to do with sharepoint.<br><code>npm install -g yo gulp<br>npm install -g @microsoft\/generator-sharepoint<br>npm ls @microsoft\/generator-sharepoint -g --depth=0<br>npm install gulp-cli -g (to reinstall gulp for this version)<\/code><br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">fix or recreate yo.cmd, yo.ps1 if you have to (I did)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">yo @microsoft\/sharepoint<br>gulp trust-dev-cert<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">FINALLY SUCCESS and the danged Trust popup &#8211; click Yes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Done and off to bed. I still have it in for MS and Sharepoint.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What a nightmare. First, if you have Visual Studio &#8211; you have to have a new product and like most Microsoft Coding products it has a name SO CLOSE to the familiar &#8211; you have a watch a video to figure it out. VISUAL STUDIO (that is used to code) IS NOT THE SAME AS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2152","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>First Sharepoint SPFx hassles - ELB Solutions.com Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"First Sharepoint SPFx hassles - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"What a nightmare. First, if you have Visual Studio &#8211; you have to have a new product and like most Microsoft Coding products it has a name SO CLOSE to the familiar &#8211; you have a watch a video to figure it out. VISUAL STUDIO (that is used to code) IS NOT THE SAME AS [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-03T09:03:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:24:25+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/first-sharepoint-spfx-hassles\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/first-sharepoint-spfx-hassles\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"First Sharepoint SPFx hassles\",\"datePublished\":\"2020-06-03T09:03:00+00:00\",\"dateModified\":\"2022-02-03T17:24:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/first-sharepoint-spfx-hassles\\\/\"},\"wordCount\":271,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/first-sharepoint-spfx-hassles\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/first-sharepoint-spfx-hassles\\\/\",\"name\":\"First Sharepoint SPFx hassles - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2020-06-03T09:03:00+00:00\",\"dateModified\":\"2022-02-03T17:24:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/first-sharepoint-spfx-hassles\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/first-sharepoint-spfx-hassles\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/first-sharepoint-spfx-hassles\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"First Sharepoint SPFx hassles\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"First Sharepoint SPFx hassles - ELB Solutions.com Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/","og_locale":"en_US","og_type":"article","og_title":"First Sharepoint SPFx hassles - ELB Solutions.com Inc.","og_description":"What a nightmare. First, if you have Visual Studio &#8211; you have to have a new product and like most Microsoft Coding products it has a name SO CLOSE to the familiar &#8211; you have a watch a video to figure it out. VISUAL STUDIO (that is used to code) IS NOT THE SAME AS [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2020-06-03T09:03:00+00:00","article_modified_time":"2022-02-03T17:24:25+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"First Sharepoint SPFx hassles","datePublished":"2020-06-03T09:03:00+00:00","dateModified":"2022-02-03T17:24:25+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/"},"wordCount":271,"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/","url":"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/","name":"First Sharepoint SPFx hassles - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2020-06-03T09:03:00+00:00","dateModified":"2022-02-03T17:24:25+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/first-sharepoint-spfx-hassles\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"First Sharepoint SPFx hassles"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/2152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=2152"}],"version-history":[{"count":4,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/2152\/revisions"}],"predecessor-version":[{"id":2172,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/2152\/revisions\/2172"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=2152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=2152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=2152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}