npm ERR! asyncWrite is not a function

1.背景:原先node是官网下载安装的,通过brew更新了下,然后到项目里npm i 安装包时候,报错
2.解决:卸载官网下载安装的node,重装

 sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}         //卸载node

原文地址:https://www.cnblogs.com/cynthia-wuqian/p/9322777.html

时间: 2024-08-30 18:07:22

npm ERR! asyncWrite is not a function的相关文章

解决 windows npm ERR! asyncWrite is not a function 问题

重装过node,cmd中 node -v,npm -v 提示版本都没有问题,但是在vue项目中npm i 的时候出现了npm ERR! asyncWrite is not a function 问题,网上众说纷纭,有的说node的版本和npm的版本不兼容问题,试过各种方法,还是在stack Overflow中找到了解决方法,有个外国网友是这样回答的: Solution for windows platform Uninstall Node Delete folder from programfi

cnmp安装失败,报错npm ERR! enoent ENOENT: no such file or directory,

1.cnmp安装失败 2.提示如下: bogon:node_modules liangjingming$ sudo npm install cnpm -g --registry=https://registry.npm.taobao.org Password: /usr/local/lib └── (empty) npm ERR! Darwin 16.4.0 npm ERR! argv "/usr/local/Cellar/node/7.8.0/bin/node" "/usr

报npm ERR! fetch failed https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-c错误

D:\grunttest>npm installnpm WARN package.json [email protected] No repository field.npm WARN package.json [email protected] No README datanpm ERR! fetch failed https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-cntrib-uglify-0.2.7.tgznpm ERR! fe

解决npm安装模块时 npm err! registry error parsing json

最近还真是点背,从yeoman生成一个react项目或是github上克隆一个项目,在npm install的时候, 一直报npm err! registry error parsing json(就是一行红色的,因为解决了,图没了,也懒的复现了) 我的解决方式是 因为是错误中有registry,所以就应该是registry 的问题 因为我的电脑有vpn 而且网速3m/s,所以网络问题is no 因为我设置了淘宝镜像吗, 先来npm config list一下试试 哦原来是我安装了淘宝镜像啊,

"npm ERR! Error: EPERM: operation not permitted"问题解决

在基于macaca进行自动化测试的时候,遇到如下问题: E:\AutoTest\Macaca\LocalTEST\macaca-test-sample\macaca-test>macaca doctor   Node.js checklist:   node env: C:\Program Files\nodejs\node.exe  node version: v6.3.0   Android checklist:   JAVA version is `1.8.0_91`  JAVA_HOME

tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:56281 npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network

tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:56281npm ERR! network This is most likely not a problem with npm itselfnpm ERR! network and is related to network connectivity.npm ERR! network In most cases you are behi

npm ERR!

FAILED! => {"changed": false, "cmd": "/usr/bin/npm install --registry https://registry.npm.taobao.org",  "msg": "npm ERR! Linux 3.10.0-514.el7.x86_64\nnpm ERR! argv \"/usr/bin/node\" \"/usr/bi

npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法

npm ERR! path E:\SouthernPowerGridProject\web_project\AutoOPS\autoops\node_modules\fsevents\node_modules\dashdash\node_modulesnpm ERR! code EPERMnpm ERR! errno -4048npm ERR! syscall scandirnpm ERR! Error: EPERM: operation not permitted, scandir 'E:\S

npm ERR! path: '/usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri' }

在安装appium 或者升级npm的过程中会遇到这个问题.出错时的代码提示如下: npm ERR! path /usr/local/lib/node_modules/npm/node_modules/cacache/node_modules/ssri npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/loca