{"id":2541,"date":"2017-12-09T04:58:40","date_gmt":"2017-12-09T04:58:40","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2541"},"modified":"2020-01-09T09:30:55","modified_gmt":"2020-01-09T09:30:55","slug":"throw-new-errornpm-load-required","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/throw-new-errornpm-load-required\/","title":{"rendered":"Throw new Error(&#8216;npm.load() required&#8217;)"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: throw new Error(&#8216;npm.load() required&#8217;)<\/strong><\/p>\n<p>Error:<\/p>\n<p>C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\npm.js:37<br \/>\nthrow new Error(&#8216;npm.load() required&#8217;)<br \/>\n^<br \/>\nError: npm.load() required<br \/>\nat Object.npm.config.get (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\npm.js:37:11)<br \/>\nat exit (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\utils\\error-handler.js:49:27)<br \/>\nat process.errorHandler (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\utils\\error-handler.js:314:3)<br \/>\nat process.EventEmitter.emit (events.js:95:17)<br \/>\nat process._fatalException (node.js:272:26)<br \/>\nBuild step &#8216;Execute Windows batch command&#8217; marked build as failure<\/p>\n<p>Regards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @<a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\"> twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: throw new Error(&#8216;npm.load() required&#8217;) Error: C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\npm.js:37 throw new Error(&#8216;npm.load() required&#8217;) ^ Error: npm.load() required at Object.npm.config.get (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\npm.js:37:11) at exit (C:\\Program Files\\nodejs\\node_modules\\npm\\lib\\utils\\error-handler.js:49:27) at process.errorHandler (C:\\Program&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[57],"tags":[258],"class_list":["post-2541","post","type-post","status-publish","format-standard","hentry","category-scripting","tag-error"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2541"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2541\/revisions"}],"predecessor-version":[{"id":2542,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2541\/revisions\/2542"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}