0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'http-server' ] 1 info using npm@8.5.1 2 info using node@v12.22.9 3 timing npm:load:whichnode Completed in 0ms 4 timing config:load:defaults Completed in 1ms 5 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 3ms 6 timing config:load:builtin Completed in 4ms 7 timing config:load:cli Completed in 3ms 8 timing config:load:env Completed in 0ms 9 timing config:load:project Completed in 2ms 10 timing config:load:file:/home/ubuntu/.npmrc Completed in 0ms 11 timing config:load:user Completed in 1ms 12 timing config:load:file:/etc/npmrc Completed in 0ms 13 timing config:load:global Completed in 0ms 14 timing config:load:validate Completed in 0ms 15 timing config:load:credentials Completed in 8ms 16 timing config:load:setEnvs Completed in 1ms 17 timing config:load Completed in 20ms 18 timing npm:load:configload Completed in 21ms 19 timing npm:load:setTitle Completed in 1ms 20 timing config:load:flatten Completed in 5ms 21 timing npm:load:display Completed in 6ms 22 verbose logfile /home/ubuntu/.npm/_logs/2022-12-24T00_00_53_141Z-debug-0.log 23 timing npm:load:logFile Completed in 6ms 24 timing npm:load:timers Completed in 0ms 25 timing npm:load:configScope Completed in 0ms 26 timing npm:load Completed in 34ms 27 timing arborist:ctor Completed in 8ms 28 timing idealTree:init Completed in 8ms 29 timing idealTree:userRequests Completed in 4ms 30 silly idealTree buildDeps 31 silly fetch manifest http-server@* 32 http fetch GET 200 https://registry.npmjs.org/http-server 93ms (cache miss) 33 silly placeDep ROOT http-server@14.1.1 OK for: want: * 34 silly fetch manifest basic-auth@^2.0.1 35 silly fetch manifest chalk@^4.1.2 36 silly fetch manifest corser@^2.0.1 37 silly fetch manifest he@^1.2.0 38 silly fetch manifest html-encoding-sniffer@^3.0.0 39 silly fetch manifest http-proxy@^1.18.1 40 silly fetch manifest mime@^1.6.0 41 silly fetch manifest minimist@^1.2.6 42 silly fetch manifest opener@^1.5.1 43 silly fetch manifest portfinder@^1.0.28 44 silly fetch manifest secure-compare@3.0.1 45 silly fetch manifest union@~0.5.0 46 silly fetch manifest url-join@^4.0.1 47 http fetch GET 200 https://registry.npmjs.org/basic-auth 62ms (cache miss) 48 http fetch GET 200 https://registry.npmjs.org/mime 117ms (cache miss) 49 http fetch GET 200 https://registry.npmjs.org/he 122ms (cache miss) 50 http fetch GET 200 https://registry.npmjs.org/url-join 113ms (cache miss) 51 http fetch GET 200 https://registry.npmjs.org/html-encoding-sniffer 122ms (cache miss) 52 http fetch GET 200 https://registry.npmjs.org/portfinder 118ms (cache miss) 53 http fetch GET 200 https://registry.npmjs.org/minimist 122ms (cache miss) 54 http fetch GET 200 https://registry.npmjs.org/chalk 128ms (cache miss) 55 http fetch GET 200 https://registry.npmjs.org/http-proxy 125ms (cache miss) 56 http fetch GET 200 https://registry.npmjs.org/opener 650ms (cache miss) 57 http fetch GET 200 https://registry.npmjs.org/secure-compare 649ms (cache miss) 58 http fetch GET 200 https://registry.npmjs.org/corser 659ms (cache miss) 59 http fetch GET 200 https://registry.npmjs.org/union 660ms (cache miss) 60 timing idealTree:#root Completed in 781ms 61 silly placeDep node_modules/http-server basic-auth@2.0.1 OK for: http-server@14.1.1 want: ^2.0.1 62 silly placeDep node_modules/http-server chalk@4.1.2 OK for: http-server@14.1.1 want: ^4.1.2 63 silly placeDep node_modules/http-server corser@2.0.1 OK for: http-server@14.1.1 want: ^2.0.1 64 silly placeDep node_modules/http-server he@1.2.0 OK for: http-server@14.1.1 want: ^1.2.0 65 silly placeDep node_modules/http-server html-encoding-sniffer@3.0.0 OK for: http-server@14.1.1 want: ^3.0.0 66 silly placeDep node_modules/http-server http-proxy@1.18.1 OK for: http-server@14.1.1 want: ^1.18.1 67 silly placeDep node_modules/http-server mime@1.6.0 OK for: http-server@14.1.1 want: ^1.6.0 68 silly placeDep node_modules/http-server minimist@1.2.7 OK for: http-server@14.1.1 want: ^1.2.6 69 silly placeDep node_modules/http-server opener@1.5.2 OK for: http-server@14.1.1 want: ^1.5.1 70 silly placeDep node_modules/http-server portfinder@1.0.32 OK for: http-server@14.1.1 want: ^1.0.28 71 silly placeDep node_modules/http-server secure-compare@3.0.1 OK for: http-server@14.1.1 want: 3.0.1 72 silly placeDep node_modules/http-server union@0.5.0 OK for: http-server@14.1.1 want: ~0.5.0 73 silly placeDep node_modules/http-server url-join@4.0.1 OK for: http-server@14.1.1 want: ^4.0.1 74 silly fetch manifest safe-buffer@5.1.2 75 silly fetch manifest ansi-styles@^4.1.0 76 silly fetch manifest supports-color@^7.1.0 77 silly fetch manifest whatwg-encoding@^2.0.0 78 silly fetch manifest eventemitter3@^4.0.0 79 silly fetch manifest requires-port@^1.0.0 80 silly fetch manifest follow-redirects@^1.0.0 81 silly fetch manifest async@^2.6.4 82 silly fetch manifest debug@^3.2.7 83 silly fetch manifest mkdirp@^0.5.6 84 silly fetch manifest qs@^6.4.0 85 http fetch GET 200 https://registry.npmjs.org/ansi-styles 105ms (cache miss) 86 http fetch GET 200 https://registry.npmjs.org/whatwg-encoding 101ms (cache miss) 87 http fetch GET 200 https://registry.npmjs.org/mkdirp 95ms (cache miss) 88 http fetch GET 200 https://registry.npmjs.org/supports-color 108ms (cache miss) 89 http fetch GET 200 https://registry.npmjs.org/safe-buffer 115ms (cache miss) 90 http fetch GET 200 https://registry.npmjs.org/follow-redirects 106ms (cache miss) 91 http fetch GET 200 https://registry.npmjs.org/requires-port 112ms (cache miss) 92 http fetch GET 200 https://registry.npmjs.org/eventemitter3 113ms (cache miss) 93 http fetch GET 200 https://registry.npmjs.org/debug 111ms (cache miss) 94 http fetch GET 200 https://registry.npmjs.org/async 117ms (cache miss) 95 http fetch GET 200 https://registry.npmjs.org/qs 118ms (cache miss) 96 timing idealTree:node_modules/http-server Completed in 185ms 97 silly placeDep node_modules/http-server safe-buffer@5.1.2 OK for: basic-auth@2.0.1 want: 5.1.2 98 timing idealTree:node_modules/http-server/node_modules/basic-auth Completed in 10ms 99 silly placeDep node_modules/http-server ansi-styles@4.3.0 OK for: chalk@4.1.2 want: ^4.1.0 100 silly placeDep node_modules/http-server supports-color@7.2.0 OK for: chalk@4.1.2 want: ^7.1.0 101 silly fetch manifest color-convert@^2.0.1 102 silly fetch manifest has-flag@^4.0.0 103 http fetch GET 200 https://registry.npmjs.org/color-convert 39ms (cache miss) 104 http fetch GET 200 https://registry.npmjs.org/has-flag 35ms (cache miss) 105 timing idealTree:node_modules/http-server/node_modules/chalk Completed in 54ms 106 silly placeDep node_modules/http-server color-convert@2.0.1 OK for: ansi-styles@4.3.0 want: ^2.0.1 107 silly fetch manifest color-name@~1.1.4 108 http fetch GET 200 https://registry.npmjs.org/color-name 22ms (cache miss) 109 timing idealTree:node_modules/http-server/node_modules/ansi-styles Completed in 25ms 110 silly placeDep node_modules/http-server color-name@1.1.4 OK for: color-convert@2.0.1 want: ~1.1.4 111 timing idealTree:node_modules/http-server/node_modules/color-convert Completed in 2ms 112 timing idealTree:node_modules/http-server/node_modules/color-name Completed in 0ms 113 timing idealTree:node_modules/http-server/node_modules/corser Completed in 0ms 114 timing idealTree:node_modules/http-server/node_modules/he Completed in 0ms 115 silly placeDep node_modules/http-server whatwg-encoding@2.0.0 OK for: html-encoding-sniffer@3.0.0 want: ^2.0.0 116 silly fetch manifest iconv-lite@0.6.3 117 http fetch GET 200 https://registry.npmjs.org/iconv-lite 24ms (cache miss) 118 timing idealTree:node_modules/http-server/node_modules/html-encoding-sniffer Completed in 29ms 119 silly placeDep node_modules/http-server eventemitter3@4.0.7 OK for: http-proxy@1.18.1 want: ^4.0.0 120 silly placeDep node_modules/http-server follow-redirects@1.15.2 OK for: http-proxy@1.18.1 want: ^1.0.0 121 silly placeDep node_modules/http-server requires-port@1.0.0 OK for: http-proxy@1.18.1 want: ^1.0.0 122 timing idealTree:node_modules/http-server/node_modules/http-proxy Completed in 5ms 123 timing idealTree:node_modules/http-server/node_modules/eventemitter3 Completed in 0ms 124 timing idealTree:node_modules/http-server/node_modules/follow-redirects Completed in 0ms 125 timing idealTree:node_modules/http-server/node_modules/mime Completed in 0ms 126 timing idealTree:node_modules/http-server/node_modules/minimist Completed in 0ms 127 timing idealTree:node_modules/http-server/node_modules/opener Completed in 0ms 128 silly placeDep node_modules/http-server async@2.6.4 OK for: portfinder@1.0.32 want: ^2.6.4 129 silly placeDep node_modules/http-server debug@3.2.7 OK for: portfinder@1.0.32 want: ^3.2.7 130 silly placeDep node_modules/http-server mkdirp@0.5.6 OK for: portfinder@1.0.32 want: ^0.5.6 131 silly fetch manifest lodash@^4.17.14 132 silly fetch manifest ms@^2.1.1 133 http fetch GET 200 https://registry.npmjs.org/ms 32ms (cache miss) 134 http fetch GET 200 https://registry.npmjs.org/lodash 35ms (cache miss) 135 timing idealTree:node_modules/http-server/node_modules/portfinder Completed in 41ms 136 silly placeDep node_modules/http-server lodash@4.17.21 OK for: async@2.6.4 want: ^4.17.14 137 timing idealTree:node_modules/http-server/node_modules/async Completed in 7ms 138 silly placeDep node_modules/http-server ms@2.1.3 OK for: debug@3.2.7 want: ^2.1.1 139 timing idealTree:node_modules/http-server/node_modules/debug Completed in 6ms 140 timing idealTree:node_modules/http-server/node_modules/lodash Completed in 0ms 141 timing idealTree:node_modules/http-server/node_modules/mkdirp Completed in 0ms 142 timing idealTree:node_modules/http-server/node_modules/ms Completed in 0ms 143 timing idealTree:node_modules/http-server/node_modules/requires-port Completed in 0ms 144 timing idealTree:node_modules/http-server/node_modules/safe-buffer Completed in 0ms 145 timing idealTree:node_modules/http-server/node_modules/secure-compare Completed in 0ms 146 silly placeDep node_modules/http-server has-flag@4.0.0 OK for: supports-color@7.2.0 want: ^4.0.0 147 timing idealTree:node_modules/http-server/node_modules/supports-color Completed in 2ms 148 timing idealTree:node_modules/http-server/node_modules/has-flag Completed in 0ms 149 silly placeDep node_modules/http-server qs@6.11.0 OK for: union@0.5.0 want: ^6.4.0 150 silly fetch manifest side-channel@^1.0.4 151 http fetch GET 200 https://registry.npmjs.org/side-channel 28ms (cache miss) 152 timing idealTree:node_modules/http-server/node_modules/union Completed in 31ms 153 silly placeDep node_modules/http-server side-channel@1.0.4 OK for: qs@6.11.0 want: ^1.0.4 154 silly fetch manifest call-bind@^1.0.0 155 silly fetch manifest get-intrinsic@^1.0.2 156 silly fetch manifest object-inspect@^1.9.0 157 http fetch GET 200 https://registry.npmjs.org/get-intrinsic 44ms (cache miss) 158 http fetch GET 200 https://registry.npmjs.org/call-bind 52ms (cache miss) 159 http fetch GET 200 https://registry.npmjs.org/object-inspect 43ms (cache miss) 160 timing idealTree:node_modules/http-server/node_modules/qs Completed in 55ms 161 silly placeDep node_modules/http-server call-bind@1.0.2 OK for: side-channel@1.0.4 want: ^1.0.0 162 silly placeDep node_modules/http-server get-intrinsic@1.1.3 OK for: side-channel@1.0.4 want: ^1.0.2 163 silly placeDep node_modules/http-server object-inspect@1.12.2 OK for: side-channel@1.0.4 want: ^1.9.0 164 silly fetch manifest function-bind@^1.1.1 165 silly fetch manifest has@^1.0.3 166 silly fetch manifest has-symbols@^1.0.3 167 http fetch GET 200 https://registry.npmjs.org/has-symbols 24ms (cache miss) 168 http fetch GET 200 https://registry.npmjs.org/function-bind 36ms (cache miss) 169 http fetch GET 200 https://registry.npmjs.org/has 36ms (cache miss) 170 timing idealTree:node_modules/http-server/node_modules/side-channel Completed in 45ms 171 silly placeDep node_modules/http-server function-bind@1.1.1 OK for: call-bind@1.0.2 want: ^1.1.1 172 timing idealTree:node_modules/http-server/node_modules/call-bind Completed in 2ms 173 timing idealTree:node_modules/http-server/node_modules/function-bind Completed in 0ms 174 silly placeDep node_modules/http-server has@1.0.3 OK for: get-intrinsic@1.1.3 want: ^1.0.3 175 silly placeDep node_modules/http-server has-symbols@1.0.3 OK for: get-intrinsic@1.1.3 want: ^1.0.3 176 timing idealTree:node_modules/http-server/node_modules/get-intrinsic Completed in 4ms 177 timing idealTree:node_modules/http-server/node_modules/has Completed in 0ms 178 timing idealTree:node_modules/http-server/node_modules/has-symbols Completed in 0ms 179 timing idealTree:node_modules/http-server/node_modules/object-inspect Completed in 0ms 180 timing idealTree:node_modules/http-server/node_modules/url-join Completed in 0ms 181 silly placeDep node_modules/http-server iconv-lite@0.6.3 OK for: whatwg-encoding@2.0.0 want: 0.6.3 182 silly fetch manifest safer-buffer@>= 2.1.2 < 3.0.0 183 http fetch GET 200 https://registry.npmjs.org/safer-buffer 26ms (cache miss) 184 timing idealTree:node_modules/http-server/node_modules/whatwg-encoding Completed in 28ms 185 silly placeDep node_modules/http-server safer-buffer@2.1.2 OK for: iconv-lite@0.6.3 want: >= 2.1.2 < 3.0.0 186 timing idealTree:node_modules/http-server/node_modules/iconv-lite Completed in 2ms 187 timing idealTree:node_modules/http-server/node_modules/safer-buffer Completed in 0ms 188 timing idealTree:buildDeps Completed in 1323ms 189 timing idealTree:fixDepFlags Completed in 2ms 190 timing idealTree Completed in 1340ms 191 timing reify:loadTrees Completed in 1342ms 192 timing reify:diffTrees Completed in 2ms 193 silly reify moves {} 194 timing reify:retireShallow Completed in 0ms 195 timing reify:rollback:createSparse Completed in 0ms 196 timing reify:rollback:retireShallow Completed in 0ms 197 timing command:install Completed in 1418ms 198 verbose stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules' 199 verbose cwd /home/ubuntu/coursera/coursera-dl 200 verbose Linux 5.15.0-1025-oracle 201 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "http-server" 202 verbose node v12.22.9 203 verbose npm v8.5.1 204 error code EACCES 205 error syscall mkdir 206 error path /usr/local/lib/node_modules 207 error errno -13 208 error [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules'] { 208 error errno: -13, 208 error code: 'EACCES', 208 error syscall: 'mkdir', 208 error path: '/usr/local/lib/node_modules' 208 error } 209 error 209 error The operation was rejected by your operating system. 209 error It is likely you do not have the permissions to access this file as the current user 209 error 209 error If you believe this might be a permissions issue, please double-check the 209 error permissions of the file and its containing directories, or try running 209 error the command again as root/Administrator. 210 verbose exit -13 211 timing npm Completed in 1725ms 212 verbose unfinished npm timer reify 1671840053449 213 verbose unfinished npm timer reify:createSparse 1671840054845 214 verbose code -13 215 error A complete log of this run can be found in: 215 error /home/ubuntu/.npm/_logs/2022-12-24T00_00_53_141Z-debug-0.log