简体   繁体   English

如何安装npm在github上工作

[英]How to install npm to work on github

I am new to github . 我是github的新手。 I want to install npm to work with node js . 我想安装npm来使用节点js But while installing npm i am getting the below error. 但是在安装npm时我收到以下错误。 I cloned my project from GitHub. 我从GitHub克隆了我的项目。 After cloning is done, I need to install npm to build my project. 克隆完成后,我需要安装npm来构建我的项目。 But I am failing in installing the npm . 但我没有安装npm

Anyone please suggest an idea to solve this. 任何人请建议一个想法来解决这个问题。

Error Image: 错误图片:

在此输入图像描述

I tried everything what i surfed. 我尝试了我所冲浪的一切。 But i didn't find any solution for this. 但我没有找到任何解决方案。

A compiler is required to build native modules (C, C++) on windows. 需要编译器在Windows上构建本机模块(C,C ++)。 Your error occurs when node-gyp tries to build the "bignum" module. 当node-gyp尝试构建“bignum”模块时,会发生错误。

Take a look on the node-gyp Readme . 看一下node-gyp自述文件 The installation of a compiler on windows is described there. 这里描述了在Windows上安装编译器。

Maybe doc help https://docs.npmjs.com/getting-started/installing-node . 也许doc help https://docs.npmjs.com/getting-started/installing-node Node comes with npm installed so you should have a version of npm. Node安装了npm,因此你应该有一个npm的版本。

Your problem is that one package is using openSSL and need openssl header files to be installed. 您的问题是一个软件包正在使用openSSL并且需要安装openssl头文件。 You need to install openssl AND! 你需要安装openssl AND! the header files to your windows. 头文件到你的窗口。 And also be sure the search path to the header files is set correctly. 并且还要确保正确设置头文件的搜索路径。

Sorry here, I'm not familiar anymore with windows. 对不起,我对Windows不再熟悉了。 On MacOS or Linux I could help you. 在MacOS或Linux上,我可以帮到你。

But may the official openssl documentation help you. 但官方的openssl 文档可能对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM