node.js - 尝试使用 npm (v6.2.1) 安装任何软件包时节点 9.x 中的异步写入错误?
问题描述
我安装了 Ubunutu 16.04 LTS 和节点版本 9.x。当我尝试使用通常的命令安装任何 npm 包时,它给了我以下错误。
npm ERR! asyncWrite is not a function
npm ERR! pna.nextTick is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-06-03T15_04_58_766Z-debug.log
我在这里先向您的帮助表示感谢。
解决方案
尝试将你的 nodejs 降级到 8.11.2
sudo npm cache clean -f
sudo npm install -g n
sudo n 8.11.2
推荐阅读
- python - Python pygame 需要帮助一次禁用多个按键
- java - 在现有的 xls 文件中插入新列,保持格式不变在 Java 中
- angular - 使用 Web 和应用程序服务器在生产中进行 Angular 配置
- c# - 从 C# 中的 vs 中的存储过程获取返回值
- node.js - 如何创建针对电子平台的 cordova 插件?
- php - 500 内部服务器错误 - 尝试在我的 OVH 服务器上推送 APN
- blazor - 如何控制 Blazor Virtualize 组件的高度
- flask - 工作完成后烧瓶重定向到上一个网址
- kubernetes - 用户 \"system:serviceaccount:infini-system:default\" 无法在命名空间 \"default\"" 中的 API 组 \"kubedb.com\" 中获取资源 \"postgreses\"
- python - 抓取信息 - BeautifulSoup/Python