安装Ubuntu 18.04后命令不执行

问题描述 投票:1回答:1
  • 我正在使用ubuntu 18.04机器。我在最近几天遇到了一些问题。安装某些程序后,命令不会执行。在某些日子之前,我用nodemon安装了npm。安装后我只执行nodemon,它说Command 'nodemon' not found, did you mean..。我试过重启终端和他们的机器。尝试全局安装它和sudo
  • 它刚刚发生在我身上。使用命令ngxfirebase

怎么做这个。如果您需要其他信息,请发表评论。

ubuntu terminal ubuntu-18.04
1个回答
1
投票

最后找到解决方案。这是npm问题。我不会给我任何错误,但只是不会工作说command not found。所以它通过重新配置npm目录来修复。这是参考。 https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

© www.soinside.com 2019 - 2024. All rights reserved.