npm 报错

如果 Git 出现如下提示,则是 npm 版本问题

1
2
3
4
5
6
7
8
[root@localhost VehicleExhaust_vue]# npm install ww-library-ve@1.1.68015 --save
npm ERR! code ETARGET
npm ERR! notarget No matching version found for ww-library-ve@1.1.68015
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-08-26T09_22_30_937Z-debug.log

解决方案是安装最新版本的 npm
代码如下:

1
npm install npm -g

不支持复杂数学公式

如果当前 hexo 渲染器无法渲染复杂数学公式
可以选择更换 hexo 渲染器
卸载原先的 hexo 渲染器

1
npm uni hexo-renderer-marked

安装更高级的 hexo 渲染器

1
npm install hexo-renderer-markdown-it-plus