需求
wsl装的是ubuntu系统,在打包前端镜像时提示npm找不到,需要安装下NodeJS.
参考资源
https://github.com/nodesource/distributions
操作指令
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
wsl装的是ubuntu系统,在打包前端镜像时提示npm找不到,需要安装下NodeJS.
https://github.com/nodesource/distributions
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs