我正在运行
make
的目录中运行npx tailwindcss -i ./static/src/input.css -o ./static/dist/css/output.css
,但不幸的是我收到如下错误
jbob@macbook:~/temmplate/src$ make
npx tailwindcss -i ./static/src/input.css -o ./static/dist/css/output.css
'\\wsl.localhost\Ubuntu\home\jbob\template\src'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Specified input file ./static/src/input.css does not exist.
make: *** [Makefile:2: all] Error 9
有什么建议吗?
谢谢
我看过类似的其他问题,但没有运气
我有
node
,因此 npx
安装在主机 Windows 系统上,它试图引用它,而不是安装在 Ubuntu 上的副本
在 Windows 上卸载它并开始工作
我也有同样的问题。发生这种情况是因为 NVM 配置错误。请按照以下步骤进行修复。
检查 WSL 终端上的
node -v
。命令不起作用。
通过 nvm ls
检查已安装的节点版本。看到default -> N/A
了吗?这就是问题所在。
通过 nvm alias default <node_version>
将节点版本绑定到默认值
再次检查 nvm ls
是否已添加。
再次检查node -v
。现在它可以工作了(如果不检查新的终端窗口)