参考文档
- node.js安装后,执行npm报错npm WARN config global
--global
,--local
are deprecated. Use--location=global
instead.、- 原因:升级 node 版本后,npm 没有同步升级到对应版本,所以出现 WARN 。
- 解决步骤: 将 npm 升级到最新版本
- 更改全局包存放和缓存存放位置时,出现错误: npm WARN logfile could not create logs-dir: Error: EPERM: operation not permitted, mkdir ‘地址‘
-
解决步骤:
- nodejs根目录用户权限不足,找到node目录,右键属性 => 安全 => 设置users用户完全控制权限
-
使用步骤
- 在hexo-blog根目录执行 'hexo new past [bolg名称]'
- 编辑 hexo-blog\source_posts 下对应的md文档