question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react native init throwing error ERR_INVALID_ARG_TYPE(name, 'string', value)

See original GitHub issue

Hello, I am having some issue with react native init for creating a new project. The error is something like wqeqweasadad

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:closed
  • Created 4 years ago
  • Reactions:22
  • Comments:37 (2 by maintainers)

github_iconTop GitHub Comments

29reactions
mixkorshuncommented, Mar 22, 2019

It works with previous versions:

react-native init --version "0.58.6"
3reactions
BenHurMartinscommented, Mar 22, 2019

this is how my package.json looked after the react-native init command:

{
  "name": "answers",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start"
  },
  "dependencies": {
    "react-native": "0.59.1"
  }
}

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found