<1>本地执行npm run build--正常 <2>查看环境变量--正常 [root@localhost bin]# echo $PATH /usr/local/node/bin:/usr/local/nginx/sbin:/usr/local/node/bin: <3>将shell中的script的npm command换成绝对路径 报错:/usr/bin/env: node: No such file or directory 解决办法: 添加node软链接:l…
While using the apt-get command or the relatively new APT package management tool in Ubuntu Linux or its derivatives such as Linux Mint (which I actually use as my primary operating system for doing daily work), you might have encountered the error –…