我在用着:
Windows 10
npm -v 5.8.0
npx -v 9.7.1
跑步时npx
,我得到:"The "path" argument must be of type string"
。
我正在尝试创建一个 React 应用程序。得到这个错误:
λ npx create-react-app myapp
npx: installed 1 in 4.576s
The "path" argument must be of type string
C:\Users\MyUser\AppData\Roaming\npm\node_modules\create-react-app\index.js
C:\Users\MyUser\AppData\Roaming\npm\node_modules\create-react-app\package.json: Unexpected string in JSON at position 52