react native init throwing error ERR_INVALID_ARG_TYPE(name, 'string', value)
See original GitHub issueHello, I am having some issue with react native init for creating a new project. The error is something like
just executing react-native init projectName project creation failed wth ` internal/validators.js:125 throw new ERR_INVALID_ARG_TYPE(name, ‘string’, value); TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type undefined at validateString (internal/validators.js:125:11)
`
node v11.10.0 npm 6.7.0 yarn 1.13.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:22
- Comments:37 (2 by maintainers)
Top Results From Across the Web
The "path" argument must be of type string ... - Stack Overflow
In my case I was using const path = require( "path" ) and then using path to join a subdirectory like path.join( myDirectoryName...
Read more >err! typeerror [err_invalid_arg_type]: the "id" argument must be ...
TypeError: The "id" argument must be of type string. Received an instance of Object ERR! at new NodeError (node:internal/errors:371:5) .
Read more >react-native-windows-init - npm
Run this from an existing react-native project, to install react-native-windows and generate initial project files for windows. Example usage
Read more >Create an interactive React Native template
That's it for a static template ! To test this: locally. npx react-native init <app-name> --template file:// ...
Read more >react-native-cli | Yarn - Package Manager
React Native is distributed as two npm packages, react-native-cli and ... code and is installed locally into your project when you run react-native...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works with previous versions:
this is how my package.json looked after the react-native init command: