Quantcast
Channel: 'create-react-app' is not recognized as an internal or external command - Stack Overflow
Viewing all articles
Browse latest Browse all 34

'create-react-app' is not recognized as an internal or external command

$
0
0

I am trying to set up react app using create-react-app command on windows pc. I already used it on my mac computer, and it works well. But I encounter a problem. Here my steps on command line. Am i missing something?

C:\Windows\system32>cd C:\Users\ugur\Desktop\denemeC:\Users\ugur\Desktop\deneme>npm initThis utility will walk you through creating a package.json file.It only covers the most common items, and tries to guess sensible defaults.See 'npm help json' for definitive documentation on these fieldsand exactly what they do.Use 'npm install <pkg> --save' afterwards to install a package andsave it as a dependency in the package.json file.Press ^C at any time to quit.name: (deneme)version: (1.0.0)description:entry point: (index.js)test command:git repository:keywords:license: (ISC)About to write to C:\Users\ugur\Desktop\deneme\package.json:{"name": "deneme","version": "1.0.0","description": "","main": "index.js","scripts": {"test": "echo \"Error: no test specified\"&& exit 1"   },"author": "Ugur <ugur@abc.com.tr> (http://www.abc.com.tr)","license": "ISC"}Is this ok? (yes)C:\Users\ugur\Desktop\deneme>npm install -g create-react-appC:\Users\ugur\AppData\Roaming\npm\create-react-app -> C:\Users\ugur\AppData\Roaming\npm\node_modules\create-react-app\index.jsC:\Users\ugur\AppData\Roaming\npm`-- create-react-app@0.2.0+-- chalk@1.1.3  | +-- ansi-styles@2.2.1  | +-- escape-string-regexp@1.0.5  | +-- has-ansi@2.0.0  | | `-- ansi-regex@2.0.0  | +-- strip-ansi@3.0.1  | `-- supports-color@2.0.0+-- cross-spawn@4.0.0  | +-- lru-cache@4.0.1  | | +-- pseudomap@1.0.2  | | `-- yallist@2.0.0  | `-- which@1.2.10  |   `-- isexe@1.1.2+-- minimist@1.2.0  `-- semver@5.3.0C:\Users\ugur\Desktop\deneme>create-react-app new_app'create-react-app' is not recognized as an internal or external command, operable program or batch file.

Also npm configuration path is like

C:\Users\ugur\AppData\Roaming\npm\node_modules\create-react-app\


Viewing all articles
Browse latest Browse all 34

Trending Articles