Hello,
I attempted installing Elm on Ubuntu 16.04.6 LTS, using this command:
npm install -g elm
I did install nodejs and the nodejs-legacy (from another tutorial i found), but its not progressing beyond this error below. Any thoughts of how I can progress?
Thank you.
+++++++++++++++++++++++++++++++++++++++++++++++++
TypeError: Object.values is not a function
at Object. (/usr/local/lib/node_modules/elm/install.js:8:49)
at Module._compile (module.js:410:26)
at Object.Module._extensions…js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
npm ERR! Linux 4.4.0-157-generic
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “install” “elm” “–global”
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! elm@0.19.0-no-deps install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the elm@0.19.0-no-deps install script ‘node install.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the elm package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs elm
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls elm
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log
+++++++++++++++++++++++++++++++++++++++++++++++++
npm-debug.log (https was replaced with ‘xxxx’ in order to post
+++++++++++++++++++++++++++++++++++++++++++++++++
1 verbose cli [ ‘/usr/bin/nodejs’, ‘/usr/bin/npm’, ‘install’, ‘elm’, ‘–global’ ]
2 info using npm@3.5.2
3 info using node@v4.2.6
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData elm
8 silly fetchNamedPackageData elm
9 silly mapToRegistry name elm
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry xxxx://registry.npmjs.org/
12 silly mapToRegistry uri xxxx://registry.npmjs.org/elm
13 verbose request uri xxxx://registry.npmjs.org/elm
14 verbose request no auth needed
15 info attempt registry request try #1 at 2:16:35 AM
16 verbose request id 263142242324111f
17 verbose etag W/“b2142e135be22b8021f4dc1923412e0b”
18 verbose lastModified Sat, 11 May 2019 13:52:40 GMT
19 http request GET xxxx://registry.npmjs.org/elm
20 http 304 xxxx://registry.npmjs.org/elm
21 verbose headers { date: ‘Sun, 22 Sep 2019 06:16:35 GMT’,
21 verbose headers connection: ‘keep-alive’,
21 verbose headers ‘set-cookie’: [ '__cfduid=d1fff7a411e27f28eff4bfabcf3825f2b1569132995; expires=Mon, 21-Sep-20 06:16:35 GMT; p$
21 verbose headers ‘cf-cache-status’: ‘HIT’,
21 verbose headers ‘cache-control’: ‘max-age=300’,
21 verbose headers ‘cf-ray’: ‘51a226a53dc4e710-EWR’,
21 verbose headers age: ‘1140’,
21 verbose headers etag: ‘“b2142e135be22b8021f4dc1923412e0b”’,
21 verbose headers ‘expect-ct’: ‘max-age=604800, report-uri=“https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”’,
21 verbose headers ‘last-modified’: ‘Sat, 11 May 2019 13:52:40 GMT’,
21 verbose headers vary: ‘accept-encoding, accept’,
21 verbose headers ‘x-amz-meta-rev’: ‘139-af23d3b387cc08e78ad161435f99dbcc’,
21 verbose headers server: ‘cloudflare’ }
22 silly get cb [ 304,
22 silly get { date: ‘Sun, 22 Sep 2019 06:16:35 GMT’,
22 silly get connection: ‘keep-alive’,
22 silly get ‘set-cookie’: [ '__cfduid=d1fff7a411e27f28eff4bfabcf3825f2b1569132995; expires=Mon, 21-Sep-20 06:16:35 GMT; path=$
22 silly get ‘cf-cache-status’: ‘HIT’,
22 silly get ‘cache-control’: ‘max-age=300’,
22 silly get ‘cf-ray’: ‘51a226a53dc4e710-EWR’,
22 silly get age: ‘1140’,
22 silly get etag: ‘“b2142e135be22b8021f4dc1923412e0b”’,
22 silly get ‘expect-ct’: ‘max-age=604800, report-uri=“https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”’,
22 silly get ‘last-modified’: ‘Sat, 11 May 2019 13:52:40 GMT’,
22 silly get vary: ‘accept-encoding, accept’,
22 silly get ‘x-amz-meta-rev’: ‘139-af23d3b387cc08e78ad161435f99dbcc’,
22 silly get server: ‘cloudflare’ } ]