已安装NPM并正确设置了PATH变量。当我在git或cmd中键入npm时,将返回版本(5.6.0)。
npm install -g create-react-native-app
成功安装,但是尝试进行
create-react-native-app AwesomeProject
我收到以下信息:
$ create-react-native-app AwesomeProject
Creating a new React Native app in C:\Users\Sterling\Desktop\sftries\tryagain\AwesomeProject.
Using package manager as npm with npm interface.
Installing packages. This might take a couple minutes.
Installing react-native-scripts...
'npm' is not recognized as an internal or external command,
operable program or batch file.
`npm install --save-dev --save-exact react-native-scripts` failed