我运行了npm install -g create-react-app,所有的东西似乎都安装正确。
然后运行create-react-app my-app,作为回报,获取-bash: create-react-app: command not found
然后,我尝试更改我的./bash_profile $PATH,但仍然会出现错误。
我所有包的位置都是Macintosh HD/Users/my_name/npm/bin
任何帮助都将不胜感激。
谢谢!
OSX 10.13 Beta
发布于 2017-08-28 07:16:09
发布于 2018-02-14 17:18:32
确保您已经为文件路径/usr/local/lib/node_模块提供了足够的权限
然后试试这个:
npm install -g create-react-app在此之后,您可以创建react应用程序,如
create-react-app my-app发布于 2017-08-02 07:08:35
试试这个:
export PATH="/usr/local/bin:$PATH"
export PATH=$PATH:/Users/my_name/.npm-packages/bin/https://stackoverflow.com/questions/45452544
复制相似问题