我在GitHub上分叉了一个npm包,对其进行了更改,现在想直接从GitHub在我的Meteor应用程序中安装该软件包。
我的package.json文件如下:
{
"dependencies": {
"semantic-ui-react": "git+https://git@github.com/nolandg/Semantic-UI-React.git",
}
}
我接着运行。
meteor npm install
看起来一切正常,系统提示已经成功安装了该软件包:
semantic-ui-react@0.61.6 (git+https://git@github.com/nolandg/Semantic-UI-React.git#f27d5c736e5de1eed0acf7769f18caee57578526)
确实,该包出现在node_modules文件夹中。但是当我尝试启动我的Meteor应用程序时,我会收到以下错误:
Cannot set property '/my-website/node_modules/semantic-ui-react/package.json' of undefined
at Resolver._resolvePkgJsonMain (/tools/isobuild/resolver.js:320:9)
有人成功地从GitHub直接在Meteor应用程序中安装npm包吗?我无法解决这个问题。谢谢!
Meteor版本:1.4.2.3