Open Djiit opened 4 years ago
Searching it looks like an issue with the way node works on macs and not nodecg. https://stackoverflow.com/questions/43465086/env-node-no-such-file-or-directory-in-mac There are many questions regarding the same issue.
Actually, the \r
made me tilt.
I do use nvm to managed ~8-10 nodejs versions without any issues on many projects.
I tested with a local install (yarn add nodecg; yarn nodecg setup
) without any luck.
Could be related to line-ends format. Some links :
Err, yes. If I run this :
❯ find node_modules/nodecg-cli -name "*.js*" | xargs dos2unix
dos2unix: converting file node_modules/nodecg-cli/dist/bin/nodecg.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/dist/index.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/dist/lib/install-bundle-deps.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/dist/lib/util.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/dist/lib/fetch-tags.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/dist/commands/schema-types.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/dist/commands/start.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/dist/commands/index.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/dist/commands/install.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/dist/commands/setup.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/dist/commands/defaultconfig.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/dist/commands/uninstall.js to Unix format...
dos2unix: converting file node_modules/nodecg-cli/package.json to Unix format...
❯ yarn nodecg setup --help
yarn run v1.22.4
warning package.json: No license field
$ /Users/jtanay/Projects/Lourd/nodecg/node_modules/.bin/nodecg setup --help
Usage: setup [options] [version]
Install a new NodeCG instance
Options:
-u, --update Update the local NodeCG installation
-k, --skip-dependencies Skip installing npm & bower dependencies
-h, --help output usage information
✨ Done in 0.48s.
I'm not a gulp user, but maybe something like this could help : https://www.npmjs.com/package/gulp-line-ending-corrector
Transfered to nodecg-cli repository. It was fixed in this PR https://github.com/nodecg/nodecg-cli/pull/67 but haven't been released since then.
I cannot release right now but will do when I get chance.
I'm running into the same issue on Ubuntu. Is the fix going to be released soon?
Hey, got this on my macos last version:
Any ideas ?
Thanks