{"id":968,"date":"2022-02-08T01:54:28","date_gmt":"2022-02-08T01:54:28","guid":{"rendered":"https:\/\/timony.com\/mickzblog\/?p=968"},"modified":"2022-02-08T01:54:28","modified_gmt":"2022-02-08T01:54:28","slug":"debian-yarn-fails-to-run","status":"publish","type":"post","link":"http:\/\/timony.com\/mickzblog\/2022\/02\/08\/debian-yarn-fails-to-run\/","title":{"rendered":"Debian: Yarn fails to run."},"content":{"rendered":"\n<a data-flickr-embed=\"true\" href=\"https:\/\/www.flickr.com\/photos\/timony\/40081396394\/in\/dateposted-public\/\" title=\"Statue of Samuel Eliot Morison on The Mall on Commonwealth Ave in Boston.\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/live.staticflickr.com\/4788\/40081396394_f8fd7ccdcf_m.jpg\" width=\"180\" height=\"240\" alt=\"Statue of Samuel Eliot Morison on The Mall on Commonwealth Ave in Boston.\"><\/a><script async src=\"\/\/embedr.flickr.com\/assets\/client-code.js\" charset=\"utf-8\"><\/script>\n\n\n\n<p>Try setting the following environmental variable:<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">export NODE_PATH=\/usr\/lib\/nodejs:\/usr\/share\/nodejs<\/pre>\n\n\n\n<p>Yarn fails to run and shows a stacktrace like the following? Set the NODE_PATH.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nError: Cannot find module '@babel\/runtime\/helpers\/interopRequireWildcard'\nRequire stack:\n- \/usr\/share\/nodejs\/yarn\/lib\/cli\/index.js\n- \/usr\/share\/nodejs\/yarn\/bin\/yarn.js\n    at Function.Module._resolveFilename (node:internal\/modules\/cjs\/loader:933:15)\n    at Function.Module._load (node:internal\/modules\/cjs\/loader:778:27)\n    at Module.require (node:internal\/modules\/cjs\/loader:1005:19)\n    at require (node:internal\/modules\/cjs\/helpers:102:18)\n    at Object.&lt;anonymous> (\/usr\/share\/nodejs\/yarn\/lib\/cli\/index.js:3:31)\n    at Module._compile (node:internal\/modules\/cjs\/loader:1101:14)\n    at Object.Module._extensions..js (node:internal\/modules\/cjs\/loader:1153:10)\n    at Module.load (node:internal\/modules\/cjs\/loader:981:32)\n    at Function.Module._load (node:internal\/modules\/cjs\/loader:822:12)\n    at Module.require (node:internal\/modules\/cjs\/loader:1005:19) {\n  code: 'MODULE_NOT_FOUND',\n  requireStack: &#91;\n    '\/usr\/share\/nodejs\/yarn\/lib\/cli\/index.js',\n    '\/usr\/share\/nodejs\/yarn\/bin\/yarn.js'\n  ]\n}<\/code><\/pre>\n\n\n\n<p>The following posting on the Debian bug tracker will help:<br><br><a href=\"https:\/\/bugs.debian.org\/cgi-bin\/bugreport.cgi?bug=933229\">https:\/\/bugs.debian.org\/cgi-bin\/bugreport.cgi?bug=933229<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Try setting the following environmental variable: export NODE_PATH=\/usr\/lib\/nodejs:\/usr\/share\/nodejs Yarn fails to run and shows a stacktrace like the following? Set the NODE_PATH. The following posting on the Debian bug tracker will help: https:\/\/bugs.debian.org\/cgi-bin\/bugreport.cgi?bug=933229<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[190,357,723,724],"class_list":["post-968","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-debian","tag-javascript","tag-yarn","tag-yarnpkg"],"_links":{"self":[{"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts\/968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/comments?post=968"}],"version-history":[{"count":2,"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts\/968\/revisions"}],"predecessor-version":[{"id":970,"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts\/968\/revisions\/970"}],"wp:attachment":[{"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/media?parent=968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/categories?post=968"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/tags?post=968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}