Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit b8c7b57

Browse files
Update src/index.ts
Co-authored-by: RasPhilCo <capt.pn@gmail.com>
1 parent a11a234 commit b8c7b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function checkCWD() {
1111
}
1212
}
1313
function checkNodeVersion() {
14-
const root = pkgDir.sync(__dirname) || '..'
14+
const root = pkgDir.sync(__dirname) || path.join(__dirname, '..')
1515
const pjson = require(path.join(root, 'package.json'))
1616
if (!semver.satisfies(process.versions.node, pjson.engines.node)) {
1717
process.stderr.write(`WARNING\nWARNING Node version must be ${pjson.engines.node} to use this CLI\nWARNING Current node version: ${process.versions.node}\nWARNING\n`)

0 commit comments

Comments
 (0)