首页 > 编程语言 >[email protected] install: `node-gyp rebuild`

[email protected] install: `node-gyp rebuild`

时间:2023-06-01 11:23:37浏览次数:34  
标签:node cap rebuild 0.2 install gyp

异常:

首先检查系统环境变量NODE_PATH值是否设置正常

路径下是否有node-gyp包

若是没有就执行以下命令

npm install -g node-gyp

  

标签:node,cap,rebuild,0.2,install,gyp
From: https://www.cnblogs.com/sugarwxx/p/17448434.html

相关文章

  • NodeManager REST API’s
    NodeManagerRESTAPI’sOverviewEnablingCORSsupportNodeManagerInformationAPIApplicationsAPIApplicationAPIContainersAPIContainerAPIOverviewTheNodeManagerRESTAPI’sallowtheusertogetstatusonthenodeandinformationaboutapplicationsandcont......
  • macos安装nvm管理多版本node
    最早直接采用brew安装,如下:brewinstallnode@18brewuninstallnode@18 //卸载 但学习的项目用的是老版本node,所以卸载了,用NVM来管理多版本node,参考这篇文章:https://blog.bigoodyssey.com/how-to-manage-multiple-node-versions-in-macos-2021-guide-5065f32cb63b同时加......
  • mac 升级node指定版本
    1、先查看自己的版本node-v2、清除node的缓存sudonpmcacheclean-f3、安装n模块sudonpmi-gn4、升级node指定版本sudonstable//把当前系统的Node更新成最新的“稳定版本”nlts//长期支持版nlatest//最新版n14.15.4//指定安装版本......
  • node连接mongodb
    主要试用了两个库:mongodb、mongoose由于服务器使用的是比较老版本的mongodb,如果使用比较新的客户端,编译时会出现问题:Serveratxxxx:27017reportsmaximumwireversion4,butthisversionoftheNode.jsDriverrequiresatleast6(MongoDB3.6)终级解决方案:去掉类型constm......
  • docker evel=error msg="error reading the kernel parameter net.ipv4.vs.expire_nod
    我使用的是dockerswarm-#报错evel=errormsg="errorreadingthekernelparameternet.ipv4.vs.expire_nodest_conn"error="open/proc/sys/net/ipv4/vs/expire_nodest_conn:nosuchfileordirectory"-#查看是否开启ip_vslsmod|grepip_vs==============......
  • leetcode 671. Second Minimum Node In a Binary Tree
    Givenanon-emptyspecialbinarytreeconsistingofnodeswiththenon-negativevalue,whereeachnodeinthistreehasexactlytwoorzerosub-node.Ifthenodehastwosub-nodes,thenthisnode'svalueisthesmallervalueamongitstwosub-nodes.G......
  • 在node项目中使用log4.js记录日志
    1.在项目根目录创建保存日志文件的文件夹logs2.修改.gitignore文件,添加logs文件夹,这样使用git提交进忽略logs文件夹。node_modules.envlogs3.在config文件夹下新增log4j.js文件保存log4js的配置,路径:./src/config/log4j.js//config.jsletpath=require('pat......
  • 2023-05-30 前端通过node获取七牛云的token(token最好还是在后端返回,前端获取token会暴
    constfs=require('fs');constqiniu=require('qiniu');varaccessKey='你的accessKey';varsecretKey='你的secretKey';varmac=newqiniu.auth.digest.Mac(accessKey,secretKey);//获取七牛tokenvaroptions={......
  • nacos服务下线操作时报错:The Raft Group [naming_instance_metadata] did not find th
    【问题描述】caused:errCode:500,errMsg:dometadataoperationfailed;caused:com.alibaba.nacos.consistency.exception.ConsistencyException:TheRaftGroup[naming_instance_metadata]didnotfindtheLeadernode;caused:TheRaftGroup[naming_instance_metad......
  • 2023-05-30 浅试nodejs实现登录接口业务(未完,待测试)
    constexpress=require('express');constbodyParser=require('body-parser');constmysql=require('mysql');//创建MySQL连接池constpool=mysql.createPool({host:'localhost',user:'root',password......