简体   繁体   English

Express无法找到模块“ rmp-api”

[英]Express cannot find module “rmp-api”

I am trying to use an api from github that takes rate my professor ratings and the instructions were fairly clear. 我正在尝试使用来自github的api,该api对我的教授评分进行评分,并且说明非常明确。 https://github.com/shafi-dayatar/rmp-api https://github.com/shafi-dayatar/rmp-api

npm install rmp-api --save

which worked but once I require it 哪个有效,但一旦我需要

var rmp = require('rmp-api');

It gives me the error 它给我错误

Error: Cannot find module 'rmp-api'

I've tried rebuilding the app, reinstalling all the dependencies and still nothing. 我尝试重建应用程序,重新安装所有依赖项,但仍然一无所获。 Is there something I might be missing from the installation? 安装过程中可能缺少某些内容吗?

The rmp-api package is no longer hosted in NPM. rmp-api软件包不再托管在NPM中。 At this time, if you visit the npm page for rmp-api , you will see the following description: 目前,如果您访问nmp页面的rmp-api ,则会看到以下描述:

This package name is not currently in use, but was formerly occupied by another package. 该软件包名称当前未使用,但以前被另一个软件包占用。 To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it. 为了避免恶意使用,npm会挂在程序包名称上,但要宽松一些,如果需要,我们可能会给您。

It appears this happened 9 months ago, and based on the last commit being in August of 2016, I'd guess this package has been abandoned. 看来这发生在9个月前,根据2016年8月的最后一次提交,我想这个软件包已经被放弃了。 If you want to use it, you can install it using the githubname/reponame syntax (see the documentation for more details): 如果要使用它,则可以使用githubname / reponame语法进行安装(有关更多详细信息,请参见文档 ):

npm install --save shafi-dayatar/rmp-api

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

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