![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
日常错误解决方案
日常开发过程中遇到的报错问题的解决办法
小猫没有鱼
前端新人一枚
展开
-
windows全局安装npm依赖包,报错“无法将“cnpm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称...”
windows全局安装npm依赖包,报错“无法将“cnpm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。”原因是环境变量没有正确配置首先查看全局包的存放路径: npm config get prefix将C:\Program Files (x86)\nodejs\node_global配置进系统环境变量里面:...原创 2021-07-15 16:35:51 · 683 阅读 · 0 评论 -
windows安装nrm报错‘The “path“ argument must be of type string. Received undefined‘
internal/validators.js:124 throw new ERR_INVALID_ARG_TYPE(name, 'string', value); ^[TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined at validateString (internal/validators.js:124:11) at Object..原创 2021-07-15 16:40:11 · 673 阅读 · 0 评论 -
无法加载文件 C:\Program Files (x86)\nodejs\node_global\nrm.ps1,因为在此系统上禁止运行脚本。
windows中的vscode终端执行nrm的相关命令时,报错:nrm : 无法加载文件 C:\Program Files (x86)\nodejs\node_global\nrm.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/ go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。解决办法:终端执行get-ExecutionPolicy,若显示Restricted,则执行set-Ex.原创 2021-07-15 16:56:17 · 643 阅读 · 0 评论