我正在尝试从命令行使用postcss-cli。我完成了以下步骤:
cd ~/projects/myProject
sudo npm install --save postcss-cli然后,我尝试使用以下命令:
postcss --help
node_modules/.bin/postcss --help但这对我不起作用。我甚至没有得到任何错误。
发布于 2015-08-02 21:20:52
我自己找到了答案。我刚刚重新安装了nodejs,当我尝试以下命令时,一切都运行正常:
node_modules/.bin/postcss --help这是我的解决方案:
curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install --yes nodejs
sudo apt-get install --yes build-essential发布于 2021-05-18 22:14:28
以防有人像我一样愚蠢:你还需要安装postcss-cli :-)
https://stackoverflow.com/questions/31772195
复制相似问题