renative
renative copied to clipboard
Spaces in the project name are changed to underscores and project cannot be runned
Describe the bug Spaces in the project name are changed to underscores and project cannot be runned
To Reproduce
- When doing βrnv newβ enter project name with space
- Do βrnv runβ
Expected behavior New project can be run
Screenshots or copy&paste
π SUMMARY | 8/23/2022, 4:56:28 PM β
β $ rnv run β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ReNative Version: 0.36.2-canary.3 β
β Project Name ($package.name): space space β
β Project Version ($package.version): 0.1.0 β
β Workspace ($.workspaceID): rnv β
β Build Scheme (-s): debug β
β Env Info: darwin | x64 | node v16.14.0 β
β Executed Time: 0h:0m:0s:647ms β
β β
β [ warn ] COMMAND:
yarn
FAILED with ERROR:
error package.json: Name contains illegal characters
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Command failed with exit code 1: yarn
error package.json: Name contains illegal characters
yarn install v1.22.19
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error package.json: Name contains illegal characters
Error: Command failed with exit code 1: yarn
error package.json: Name contains illegal characters
yarn install v1.22.19
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
at makeError (/Users/gabriele/.config/yarn/global/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/gabriele/.config/yarn/global/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Seems like your node_modules is corrupted by other libs. ReNative will try to fix it for you
β [ error ] COMMAND:
yarn
FAILED with ERROR:
error package.json: Name contains illegal characters
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Command failed with exit code 1: yarn
error package.json: Name contains illegal characters
yarn install v1.22.19
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error package.json: Name contains illegal characters
Error: Command failed with exit code 1: yarn
error package.json: Name contains illegal characters
yarn install v1.22.19
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
at makeError (/Users/gabriele/.config/yarn/global/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/gabriele/.config/yarn/global/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Desktop (please complete the following information):
- OS: macOS Monterey 12.5
- Node Version: 16.14.0
- RNV Version: 0.36.1-canary.3
- @rnv/template-starter: 0.36.1-canary.3
Also after successful project creating rnv shows that user should do 'cd space space' while the project was named 'space_space' automatically