Notice: 函数 WP_Scripts::localize 的调用方法不正确$l10n 参数必须是一个数组。若要将任意数据传递给脚本,请改用 wp_add_inline_script() 函数。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 5.7.0 版本添加的。) in /data/www/appblog/wp-includes/functions.php on line 6131

Node环境部署

全局依赖

npm install -g yarn
npm install -g pm2
npm install -g umi
npm install -g cnpm
npm install -g node-gyp
cnpm install -g node-sass

ionic node-sass需要安装visual studio、python解决方法

直接下载编译好的node-sass二进制资源,不编译,即可(用cnpm安装)。

cnpm install -g node-sass

源配置

npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global

yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
上一篇 React Hook 简介及入门
下一篇 本地Node环境搭建