npm ERR! code ERR_STREAM_WRITE_AFTER_END npm ERR! write after en

简介: npm ERR! code ERR_STREAM_WRITE_AFTER_END npm ERR! write after en

执行 npm install 出现如下错误

npm ERR! code ERR_STREAM_WRITE_AFTER_END npm ERR! write after end

gyw@gyw:~/sda1/code/project/xxx/frontend$ npm install 
npm ERR! code ERR_STREAM_WRITE_AFTER_END
npm ERR! write after end
npm ERR! code ERR_STREAM_WRITE_AFTER_END
npm ERR! write after end
npm ERR! code ERR_STREAM_WRITE_AFTER_END
...

查看 node 版本和 npm 版本

gyw@gyw:~/sda1/code/project/xxx/frontend$ npm -v
6.0.1
gyw@gyw:~/sda1/code/project/xxx/frontend$ node -v
v10.1.0

当前 node 和 npm 都是最新版,而非稳定版,把 node 和 npm 切换到稳定版就没问题了

node 版本切换稳定版 n stable

npm 切换到指定稳定版本 npm i -g npm@5.6.0

相关文章
|
16天前
|
网络安全 计算机视觉
【node】 npm install 报错:code 128
【node】 npm install 报错:code 128
34 1
|
3月前
|
缓存 资源调度
解决安装依赖时报错:npm ERR! code ERESOLVE
解决安装依赖时报错:npm ERR! code ERESOLVE
932 0
解决安装依赖时报错:npm ERR! code ERESOLVE
|
5月前
|
小程序
wepy踩坑-npm ERR! cb() never called!
wepy踩坑-npm ERR! cb() never called!
60 0
|
30天前
|
缓存
npm install 报 npm ERR! cb()never called!的错误
npm install 报 npm ERR! cb()never called!的错误
17 0
|
7月前
npm install 报错 npm ERR! puppeteer@1.20.0 install: `node install.js`
npm install 报错 npm ERR! puppeteer@1.20.0 install: `node install.js`
188 0
|
5月前
|
缓存
【已解决】npm安装依赖报错: npm ERR! cb() never called! npm ERR! This is an error with npm itself.
【已解决】npm安装依赖报错: npm ERR! cb() never called! npm ERR! This is an error with npm itself.
348 0
|
1月前
|
JavaScript 网络安全 数据安全/隐私保护
【问题:创建Vue项目】npm ERR! code CERT_HAS_EXPIRED npm ERR! errno CERT_HAS_EXPIRED npm ERR!
【问题:创建Vue项目】npm ERR! code CERT_HAS_EXPIRED npm ERR! errno CERT_HAS_EXPIRED npm ERR!
|
4月前
npm ERR! code ENOENT npm ERR! syscall open npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file
npm ERR! code ENOENT npm ERR! syscall open npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file
|
4月前
|
JavaScript
Vue报错:npm run start npm ERR! missing script: start
Vue报错:npm run start npm ERR! missing script: start
|
5月前
|
小程序
npm ERR! enoent ENOENT: no such file or directory, open ‘D:\package.json‘
npm ERR! enoent ENOENT: no such file or directory, open ‘D:\package.json‘
39 0

推荐镜像

更多