简体   繁体   English

无法在Github上运行代码:NPM安装和JSON包

[英]Not able to run the code on Github : NPM Install and JSON package

I am trying to run the code present on the Github using the npm install 我正在尝试使用npm install运行Github上的代码

But when I am running the code it says that Error in installing npm modules and hence can't run the code. 但是,当我运行代码时,它说安装npm模块时出错,因此无法运行代码。

I also asked this question to npm forum but they said that it is not based on NPM and hence they can't help. 我也向npm论坛提出了这个问题,但是他们说这不是基于NPM,因此他们无济于事。 I am a newbee and is learning. 我是新手,正在学习。

The link to the GItHub is 到GItHub的链接是

https://github.com/Operational-Transformation/ot.js/ https://github.com/Operational-Transformation/ot.js/

I simply extracted the zip file and tried to run this code using Command Prompt. 我只是提取了zip文件,并尝试使用命令提示符运行此代码。 I want to somehow run this code. 我想以某种方式运行此代码。 Please suggest me method to run this code. 请建议我运行此代码的方法。

I have Node.js along with socket.io 我有Node.js和socket.io

Just do 做就是了

npm install ot

This will install the node package you linked to on github. 这将在github上安装您链接到的节点包。

You can see the name of the package in the package.json file 您可以在package.json文件中看到包的名称

// package.json
{
  "name": "ot",
  "description": "Collaborative editing using operational transformation",
  // ...

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

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