laravel+vue+centos7

安装vue步骤

yum install -y npm

## 升级node到最新版
npm install -g n
n latest 

## 安装yarn
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum install -y yarn

// 引入vue
cd /www/db_publish
yarn install

vim ~/.yarnrc

"--*.no-bin-links" true

参考资料

解决由于VMWare共享文件夹功能bug导致的yarn(或npm)无法正常使用的问题
一文看懂npm、yarn、pnpm之间的区别
在centos7安装nodejs并升级nodejs到最新版本





原文地址:https://www.cnblogs.com/gelu/p/9559395.html