[英]How to permanently install MEAN.io package
I've installed a Contrib MEAN.io package to my project via the instructions here . 我已按照此处的说明将Contrib MEAN.io软件包安装到了我的项目中。 The command line is like so:
命令行如下所示:
mean install <package-name>
That added the package to my locally application instance, and it runs there fine. 这样就将该包添加到了我的本地应用程序实例中,并且可以很好地运行。 I can see that the package is now in my
node_modules
directory, and it's compiling in OK. 我可以看到该软件包现在位于我的
node_modules
目录中,并且可以在OK中进行编译。 But none of the project configuration files (things that would actually get checked into source control) reflect that the package was installed. 但是,没有任何项目配置文件(实际上将被检入源代码管理的东西)反映出该软件包已安装。
Gruntfile.js
, package.json
, and bower.json
are all unchanged after the install command. 在安装命令之后,
Gruntfile.js
, package.json
和bower.json
都保持不变。 Further, when I deploy to a different environment the package is not present on the new environment. 此外,当我部署到其他环境时,该软件包不在新环境中。
How do I permanently alter my project to always include an external MEAN.io package? 如何永久更改项目以始终包含外部MEAN.io包?
Apparently deployment of a MEAN.io Contrib package involves adding it to the package.json
file manually: 显然,部署MEAN.io Contrib程序包涉及将其手动添加到
package.json
文件中:
https://github.com/linnovate/mean-admin#deployment https://github.com/linnovate/mean-admin#deployment
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.