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.
我已经使用 Sudo 全局安装了 nx
sudo npm install -g nx
它工作正常,但有时会出现以下错误
bash: line 136: nx: command not found
重试后,它再次正常工作。
首先检查添加nrwl/cli是否有帮助,如下所示:
nrwl/cli
sudo npm i -g @nrwl/cli
如果出现错误,请检查$PATHGitLab 运行器中看到的值,以了解为什么它看不到nx. 在这种情况下,使用npm run nx作为nxcoud 的替代方法是一种解决方法。
$PATH
nx
npm run nx