26 Star 557 Fork 506

人人开源 / renren-fast-vue

 / 详情

Mac M1芯片 npm install 报错

已完成
创建于  
2023-05-24 13:35

npm ERR! code 1
npm ERR! path /Users/zhou/workSpace/ideaProject/renren-fast-vue/node_modules/chromedriver
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! Downloading https://chromedriver.storage.googleapis.com/2.27/chromedriver_mac64.zip
npm ERR! Saving to /tmp/chromedriver/chromedriver_mac64.zip
npm ERR! Receiving...
npm ERR! Received 781K...
npm ERR! Received 1568K...
npm ERR! Received 2352K...
npm ERR! Received 3136K...
npm ERR! Received 3920K...
npm ERR! Received 4496K total.
npm ERR! Extracting zip contents
npm ERR! Copying to target path /Users/zhou/workSpace/ideaProject/renren-fast-vue/node_modules/chromedriver/lib/chromedriver
npm ERR! events.js:377
npm ERR! throw er; // Unhandled 'error' event
npm ERR! ^
npm ERR!
npm ERR! Error: read ECONNRESET
npm ERR! at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)
npm ERR! Emitted 'error' event on ClientRequest instance at:
npm ERR! at TLSSocket.socketErrorListener (_http_client.js:475:9)
npm ERR! at TLSSocket.emit (events.js:400:28)
npm ERR! at emitErrorNT (internal/streams/destroy.js:106:8)
npm ERR! at emitErrorCloseNT (internal/streams/destroy.js:74:3)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:82:21) {
npm ERR! errno: -54,
npm ERR! code: 'ECONNRESET',
npm ERR! syscall: 'read'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/zhou/.npm/_logs/2023-05-24T05_33_56_991Z-debug-0.log

评论 (5)

Rq 创建了任务

node 版本v14.21.3
npm 版本9.5.0

Rq 任务状态待办的 修改为进行中
Rq 任务状态进行中 修改为待办的

问题已解决,Macos使用sudo 命令执行即可

install没报错.启动一直报6个error.然后前端页面一直显示这个:<% if (process.env.NODE_ENV === 'production') { %> <% }else { %> <% } %>
百度了一天.头快炸了.

那就是install还有问题,给你个地址:https://www.cnblogs.com/slothhh/p/16927857.html
希望可以帮到你

mbp m1pro 14inc安装该项目步骤:
1.先安装node-sass: npm install node-sass@npm:sass --ignore-scripts
2.再安装项目其他依赖:npm install

Rq 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(5)
7429888 zhouyiquan 1620805621 11283105 max s 1686704888 9132812 vicent 777 1683257136
1
https://gitee.com/renrenio/renren-fast-vue.git
git@gitee.com:renrenio/renren-fast-vue.git
renrenio
renren-fast-vue
renren-fast-vue

搜索帮助

53164aa7 5694891 3bd8fe86 5694891