Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on macOS #51

Open
kpripper opened this issue Apr 4, 2024 · 1 comment
Open

Can't install on macOS #51

kpripper opened this issue Apr 4, 2024 · 1 comment

Comments

@kpripper
Copy link

kpripper commented Apr 4, 2024

I'm the admin.

mac@MacBook-Pro-Illa ext-autoposter % npm install -g chrome-extension-cli
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/chrome-extension-cli
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/chrome-extension-cli'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/chrome-extension-cli'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules/chrome-extension-cli'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: /Users/mac/.npm/_logs/2024-04-04T17_51_15_887Z-debug-0.log

Complele log:

0 verbose cli /usr/local/bin/node /usr/local/bin/npm
1 info using npm@10.2.4
2 info using node@v20.11.1
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:/Users/mac/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:setEnvs Completed in 1ms
15 timing config:load Completed in 5ms
16 timing npm:load:configload Completed in 5ms
17 timing config:load:flatten Completed in 1ms
18 timing npm:load:mkdirpcache Completed in 0ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm install chrome-extension-cli
21 verbose argv "install" "--global" "chrome-extension-cli"
22 timing npm:load:setTitle Completed in 6ms
23 timing npm:load:display Completed in 1ms
24 verbose logfile logs-max:10 dir:/Users/mac/.npm/_logs/2024-04-04T17_51_15_887Z-
25 verbose logfile /Users/mac/.npm/_logs/2024-04-04T17_51_15_887Z-debug-0.log
26 timing npm:load:logFile Completed in 3ms
27 timing npm:load:timers Completed in 0ms
28 timing npm:load:configScope Completed in 0ms
29 timing npm:load Completed in 25ms
30 timing config:load:flatten Completed in 1ms
31 timing arborist:ctor Completed in 1ms
32 silly logfile start cleaning logs, removing 1 files
33 timing idealTree:init Completed in 3ms
34 timing idealTree:userRequests Completed in 2ms
35 silly idealTree buildDeps
36 silly fetch manifest chrome-extension-cli@*
37 silly logfile done cleaning log files
38 http fetch GET 200 https://registry.npmjs.org/chrome-extension-cli 1203ms (cache miss)
39 silly placeDep ROOT chrome-extension-cli@1.5.0 OK for: want: *
40 silly fetch manifest chalk@^2.4.2
41 silly fetch manifest commander@^3.0.1
42 silly fetch manifest cross-spawn@^7.0.0
43 silly fetch manifest fs-extra@^8.1.0
44 silly fetch manifest validate-npm-package-name@^3.0.0
45 http fetch GET 200 https://registry.npmjs.org/commander 184ms (cache miss)
46 http fetch GET 200 https://registry.npmjs.org/chalk 637ms (cache revalidated)
47 http fetch GET 200 https://registry.npmjs.org/validate-npm-package-name 640ms (cache miss)
48 http fetch GET 200 https://registry.npmjs.org/cross-spawn 642ms (cache miss)
49 http fetch GET 200 https://registry.npmjs.org/fs-extra 646ms (cache revalidated)
50 timing idealTree:#root Completed in 1857ms
51 silly placeDep node_modules/chrome-extension-cli chalk@2.4.2 OK for: chrome-extension-cli@1.5.0 want: ^2.4.2
52 silly fetch manifest ansi-styles@^3.2.1
53 silly fetch manifest escape-string-regexp@^1.0.5
54 silly fetch manifest supports-color@^5.3.0
55 silly placeDep node_modules/chrome-extension-cli commander@3.0.2 OK for: chrome-extension-cli@1.5.0 want: ^3.0.1
56 silly placeDep node_modules/chrome-extension-cli cross-spawn@7.0.3 OK for: chrome-extension-cli@1.5.0 want: ^7.0.0
57 silly fetch manifest path-key@^3.1.0
58 silly fetch manifest shebang-command@^2.0.0
59 silly fetch manifest which@^2.0.1
60 silly placeDep node_modules/chrome-extension-cli fs-extra@8.1.0 OK for: chrome-extension-cli@1.5.0 want: ^8.1.0
61 silly fetch manifest graceful-fs@^4.2.0
62 silly fetch manifest jsonfile@^4.0.0
63 silly fetch manifest universalify@^0.1.0
64 silly placeDep node_modules/chrome-extension-cli validate-npm-package-name@3.0.0 OK for: chrome-extension-cli@1.5.0 want: ^3.0.0
65 silly fetch manifest builtins@^1.0.3
66 http fetch GET 200 https://registry.npmjs.org/shebang-command 177ms (cache miss)
67 http fetch GET 200 https://registry.npmjs.org/path-key 181ms (cache miss)
68 http fetch GET 200 https://registry.npmjs.org/which 184ms (cache miss)
69 http fetch GET 200 https://registry.npmjs.org/builtins 186ms (cache miss)
70 http fetch GET 200 https://registry.npmjs.org/ansi-styles 198ms (cache revalidated)
71 http fetch GET 200 https://registry.npmjs.org/supports-color 631ms (cache revalidated)
72 http fetch GET 200 https://registry.npmjs.org/graceful-fs 633ms (cache revalidated)
73 http fetch GET 200 https://registry.npmjs.org/escape-string-regexp 641ms (cache revalidated)
74 http fetch GET 200 https://registry.npmjs.org/universalify 639ms (cache revalidated)
75 http fetch GET 200 https://registry.npmjs.org/jsonfile 643ms (cache revalidated)
76 timing idealTree:node_modules/chrome-extension-cli Completed in 648ms
77 silly placeDep node_modules/chrome-extension-cli ansi-styles@3.2.1 OK for: chalk@2.4.2 want: ^3.2.1
78 silly fetch manifest color-convert@^1.9.0
79 silly placeDep node_modules/chrome-extension-cli escape-string-regexp@1.0.5 OK for: chalk@2.4.2 want: ^1.0.5
80 silly placeDep node_modules/chrome-extension-cli supports-color@5.5.0 OK for: chalk@2.4.2 want: ^5.3.0
81 silly fetch manifest has-flag@^3.0.0
82 http fetch GET 200 https://registry.npmjs.org/color-convert 176ms (cache revalidated)
83 http fetch GET 200 https://registry.npmjs.org/has-flag 184ms (cache revalidated)
84 timing idealTree:node_modules/chrome-extension-cli/node_modules/chalk Completed in 189ms
85 silly placeDep node_modules/chrome-extension-cli color-convert@1.9.3 OK for: ansi-styles@3.2.1 want: ^1.9.0
86 silly fetch manifest color-name@1.1.3
87 http fetch GET 200 https://registry.npmjs.org/color-name 188ms (cache revalidated)
88 timing idealTree:node_modules/chrome-extension-cli/node_modules/ansi-styles Completed in 191ms
89 silly placeDep node_modules/chrome-extension-cli color-name@1.1.3 OK for: color-convert@1.9.3 want: 1.1.3
90 timing idealTree:node_modules/chrome-extension-cli/node_modules/color-convert Completed in 2ms
91 timing idealTree:node_modules/chrome-extension-cli/node_modules/color-name Completed in 0ms
92 timing idealTree:node_modules/chrome-extension-cli/node_modules/commander Completed in 0ms
93 silly placeDep node_modules/chrome-extension-cli path-key@3.1.1 OK for: cross-spawn@7.0.3 want: ^3.1.0
94 silly placeDep node_modules/chrome-extension-cli shebang-command@2.0.0 OK for: cross-spawn@7.0.3 want: ^2.0.0
95 silly fetch manifest shebang-regex@^3.0.0
96 silly placeDep node_modules/chrome-extension-cli which@2.0.2 OK for: cross-spawn@7.0.3 want: ^2.0.1
97 silly fetch manifest isexe@^2.0.0
98 http fetch GET 200 https://registry.npmjs.org/isexe 173ms (cache miss)
99 http fetch GET 200 https://registry.npmjs.org/shebang-regex 182ms (cache miss)
100 timing idealTree:node_modules/chrome-extension-cli/node_modules/cross-spawn Completed in 187ms
101 timing idealTree:node_modules/chrome-extension-cli/node_modules/escape-string-regexp Completed in 0ms
102 silly placeDep node_modules/chrome-extension-cli graceful-fs@4.2.11 OK for: fs-extra@8.1.0 want: ^4.2.0
103 silly placeDep node_modules/chrome-extension-cli jsonfile@4.0.0 OK for: fs-extra@8.1.0 want: ^4.0.0
104 silly placeDep node_modules/chrome-extension-cli universalify@0.1.2 OK for: fs-extra@8.1.0 want: ^0.1.0
105 timing idealTree:node_modules/chrome-extension-cli/node_modules/fs-extra Completed in 2ms
106 timing idealTree:node_modules/chrome-extension-cli/node_modules/graceful-fs Completed in 0ms
107 timing idealTree:node_modules/chrome-extension-cli/node_modules/jsonfile Completed in 0ms
108 timing idealTree:node_modules/chrome-extension-cli/node_modules/path-key Completed in 0ms
109 silly placeDep node_modules/chrome-extension-cli shebang-regex@3.0.0 OK for: shebang-command@2.0.0 want: ^3.0.0
110 timing idealTree:node_modules/chrome-extension-cli/node_modules/shebang-command Completed in 0ms
111 timing idealTree:node_modules/chrome-extension-cli/node_modules/shebang-regex Completed in 0ms
112 silly placeDep node_modules/chrome-extension-cli has-flag@3.0.0 OK for: supports-color@5.5.0 want: ^3.0.0
113 timing idealTree:node_modules/chrome-extension-cli/node_modules/supports-color Completed in 0ms
114 timing idealTree:node_modules/chrome-extension-cli/node_modules/has-flag Completed in 0ms
115 timing idealTree:node_modules/chrome-extension-cli/node_modules/universalify Completed in 0ms
116 silly placeDep node_modules/chrome-extension-cli builtins@1.0.3 OK for: validate-npm-package-name@3.0.0 want: ^1.0.3
117 timing idealTree:node_modules/chrome-extension-cli/node_modules/validate-npm-package-name Completed in 0ms
118 timing idealTree:node_modules/chrome-extension-cli/node_modules/builtins Completed in 0ms
119 silly placeDep node_modules/chrome-extension-cli isexe@2.0.0 OK for: which@2.0.2 want: ^2.0.0
120 timing idealTree:node_modules/chrome-extension-cli/node_modules/which Completed in 0ms
121 timing idealTree:node_modules/chrome-extension-cli/node_modules/isexe Completed in 0ms
122 timing idealTree:buildDeps Completed in 3080ms
123 timing idealTree:fixDepFlags Completed in 0ms
124 timing idealTree Completed in 3085ms
125 timing reify:loadTrees Completed in 3086ms
126 timing reify:diffTrees Completed in 1ms
127 silly reify moves {}
128 timing reify:retireShallow Completed in 1ms
129 timing reify:rollback:createSparse Completed in 0ms
130 timing reify:rollback:retireShallow Completed in 0ms
131 timing command:install Completed in 3098ms
132 verbose stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/chrome-extension-cli'
133 verbose cwd /Users/mac/Code/Personal/ext-autoposter
134 verbose Darwin 21.6.0
135 verbose node v20.11.1
136 verbose npm v10.2.4
137 error code EACCES
138 error syscall mkdir
139 error path /usr/local/lib/node_modules/chrome-extension-cli
140 error errno -13
141 error [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/chrome-extension-cli'] {
141 error errno: -13,
141 error code: 'EACCES',
141 error syscall: 'mkdir',
141 error path: '/usr/local/lib/node_modules/chrome-extension-cli'
141 error }
142 error
142 error The operation was rejected by your operating system.
142 error It is likely you do not have the permissions to access this file as the current user
142 error
142 error If you believe this might be a permissions issue, please double-check the
142 error permissions of the file and its containing directories, or try running
142 error the command again as root/Administrator.
143 verbose exit -13
144 timing npm Completed in 3213ms
145 verbose unfinished npm timer reify 1712253076002
146 verbose unfinished npm timer reify:createSparse 1712253079096
147 verbose code -13
148 error A complete log of this run can be found in: /Users/mac/.npm/_logs/2024-04-04T17_51_15_887Z-debug-0.log

@kpripper
Copy link
Author

kpripper commented Apr 4, 2024

Fixed with:
sudo chown -R $USER /usr/local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant