NPM仅在被create-react-native-app调用时无法识别

时间:2018-08-17 01:32:09

标签: react-native npm

已安装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

0 个答案:

没有答案