NPM 给出错误 - TypeError : Cannot destructure property `stat` of 'undefined' or 'null'

标签 npm npm-install

当我在 cmd 上键入 npm 时,出现错误 TypeError: Cannot destructure property stat of 'undefined' or 'null '.

enter image description here

最佳答案

尝试

npm -v

并检查 npm 是否显示版本! 如果没有,请尝试安装,或者如果您已经安装了应用程序,则尝试在环境变量中添加到/bin 的路径。这会对您有所帮助。

关于NPM 给出错误 - TypeError : Cannot destructure property `stat` of 'undefined' or 'null' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65455779/

相关文章:

node.js - 如何强制 npm 默认安装特定版本的包?

javascript - 返回组件上的Reactjs错误

ubuntu - yarn global install 在路径中不可用

node.js - 使用文件上传将 CSV 转换为 JSON

angular - 将 Angular 更新到更新版本 VS 2017

node.js - 为什么我不用 npm 来安装 yarn?

npm - Gulp版本4。为什么不是 'latest'版本?

node.js - vue-template-compiler/package.json 每个新项目都缺少模块

angularjs - AngularJS在docker文件npm安装中无法正常工作

node.js - 如何强制 npm 不创建指向本地包的符号链接(symbolic link)?