{"id":2208,"date":"2018-05-29T16:56:33","date_gmt":"2018-05-29T16:56:33","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=2208"},"modified":"2018-10-10T17:15:56","modified_gmt":"2018-10-10T17:15:56","slug":"problems-upgrading-angular-5-project-to-angular-6-and-upgrading-angular-on-a-pc","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=2208","title":{"rendered":"Problems upgrading angular 5 project to angular 6, and upgrading angular on a PC"},"content":{"rendered":"<p>I had serious issues trying to upgrade an existing project, and it was not clear online what I should do.<\/p>\n<p>The main persistent error was:-<\/p>\n<blockquote>\n<p>.\/node_modules\/raw-loader!.\/node_modules\/postcss-loader\/lib??embedded!.\/node_modules\/sass-loader\/lib\/loader.js??ref&#8211;8-3!.\/src\/styles.scss     <br \/>Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64)      <br \/>For more information on which environments are supported please see:      <br \/>https:\/\/github.com\/sass\/node-sass\/releases\/tag\/v4.8.3<\/p>\n<\/blockquote>\n<p>The online information on this was not clear.<\/p>\n<p>Initially I used a liberal combination of npm-update and npm-update \u2013g on various things but still had the above error.<\/p>\n<p>I reached a point of installing primeng successfully under angular 6 as detailed<strong> <\/strong><a href=\"http:\/\/salientsoft.co.uk\/?p=2051\"><strong>here.<\/strong><\/a><\/p>\n<p>I then tried hand editing the package.json file for the upgrade project, stealing the versions from the package.json for the primeng application. However this did not appear to help -I still had the above issues.<\/p>\n<p>In the end a combination of the following resolved this:-<\/p>\n<blockquote>\n<p>ng update @angular\/cli<\/p>\n<p>ng update @angular\/cli<\/p>\n<p>npm install \u2013g <a href=\"mailto:node-sass@latest\">node-sass@latest<\/a><\/p>\n<p>npm install <a href=\"mailto:node-sass@latest\">node-sass@latest<\/a><\/p>\n<\/blockquote>\n<p>I think the key issue here was installing the latest node-sass. I also had some code errors to resolve in the application but I did mange to run it successfully.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had serious issues trying to upgrade an existing project, and it was not clear online what I should do. The main persistent error was:- .\/node_modules\/raw-loader!.\/node_modules\/postcss-loader\/lib??embedded!.\/node_modules\/sass-loader\/lib\/loader.js??ref&#8211;8-3!.\/src\/styles.scss Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64) For more information on which environments are supported please see: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[198,209],"tags":[40],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2208"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2208"}],"version-history":[{"count":1,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2208\/revisions"}],"predecessor-version":[{"id":2209,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2208\/revisions\/2209"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}