shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied path.js:1142 #636

Closed
opened 2025-08-09 17:17:03 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @shanmugharajk on 6/25/2017

I got this error

npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> spawn-sync@1.0.15 postinstall /usr/local/lib/node_modules/generator-aspnetcore-spa/node_modules/spawn-sync
> node postinstall

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
path.js:1142
          cwd = process.cwd();
                        ^

Error: EACCES: permission denied, uv_cwd
    at Object.resolve (path.js:1142:25)
    at startup (bootstrap_node.js:129:32)
    at bootstrap_node.js:542:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! spawn-sync@1.0.15 postinstall: `node postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the spawn-sync@1.0.15 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/shanmugharajk/.npm/_logs/2017-06-25T16_35_05_657Z-debug.log
*Originally created by @shanmugharajk on 6/25/2017* I got this error ``` npm WARN deprecated node-uuid@1.4.8: Use uuid module instead npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue > spawn-sync@1.0.15 postinstall /usr/local/lib/node_modules/generator-aspnetcore-spa/node_modules/spawn-sync > node postinstall shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied path.js:1142 cwd = process.cwd(); ^ Error: EACCES: permission denied, uv_cwd at Object.resolve (path.js:1142:25) at startup (bootstrap_node.js:129:32) at bootstrap_node.js:542:3 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! spawn-sync@1.0.15 postinstall: `node postinstall` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the spawn-sync@1.0.15 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /Users/shanmugharajk/.npm/_logs/2017-06-25T16_35_05_657Z-debug.log ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#636
No description provided.