Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在尝试通过 npm 安装 express 时,bash 只是在直接在 shell 中运行任何节点模块时返回一个 command not found 语句。我浏览了无数资源和论坛来定位问题,但没有成功。
这似乎是我的解决方案。我运行了以下语句,然后继续以 sudo 重新安装 express:
chmod 777 /usr/local/lib sudo install express -g
分别运行这两个命令。