exogen / exogen/postinstall-build

Error: ENOENT: no such file or directory, uv_cwd

Open
#16 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
92
Forks
12
PR merge metrics
No merged PRs in 30d

Description

I tried to run this with babel and some other dependencies but seems like it failed :(...

./scripts/postinstall simply do `console.log(process.cwd())`

devDependencies:
```
"babel-cli": "^6.24.1",
"babel-eslint": "^7.2.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"babel-runtime": "^6.23.0",
"chokidar-cli": "^1.2.0",
"cross-env": "^4.0.0",
"eslint": "^3.19.0",
"eslint-config-semistandard": "^8.0.0",
"eslint-config-standard": "^10.2.0",
"eslint-plugin-import": "~2.2.0",
"eslint-plugin-node": "~4.2.2",
"eslint-plugin-promise": "~3.5.0",
"eslint-plugin-standard": "~3.0.1",
"husky": "^0.13.3",
"istanbul": "^0.4.5",
"lint-staged": "^3.4.0",
"mocha": "^3.2.0",
"npm-run-all": "^4.0.2",
"nsp": "^2.6.3",
"testdouble": "^2.1.2"
```

Node and npm version:
```
Now using node v6.5.0 (npm v3.10.3)
```

Error Log:
```
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
path.js:1144
cwd = process.cwd();
^

Error: ENOENT: no such file or directory, uv_cwd
at Error (native)
at Object.resolve (path.js:1144:25)
at startup (bootstrap_node.js:127:32)
at bootstrap_node.js:509:3
{ Error: Command failed: sh -c node ./scripts/postinstall

at ChildProcess. (/usr/local/opt/nvm/versions/node/v6.5.0/lib/node_modules/@cet/create-cet-widget/node_modules/postinstall-build/index.js:53:13)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
killed: false,
code: 1,
signal: null,
cmd: 'sh -c node ./scripts/postinstall' }
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with scripts/postinstall and the postinstall-build stack trace, then reproduce the failure using Node v6.5.0 and npm v3.10.3 from the reported environment. Check why process.cwd() fails during the postinstall command; done means the postinstall script runs without the ENOENT uv_cwd error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.