package-managers

How do I import a specific version of a package using go get?

你离开我真会死。 提交于 2019-11-28 15:56:37
coming from a Node environment I used to install a specific version of a vendor lib into the project folder ( node_modules ) by telling npm to install that version of that lib from the package.json or even directly from the console, like so: $ npm install express@4.0.0 Then I used to import that version of that package in my project just with: var express = require('express'); Now, I want to do the same thing with go . How can I do that? Is it possible to install a specific version of a package? If so, using a centralized $GOPATH , how can I import one version instead of another? I would do

Installing Ruby 1.9.1 on Ubuntu?

久未见 提交于 2019-11-28 15:46:40
问题 I wonder about installing the latest version of Ruby on Ubuntu 9.04. Now I can run through the ./configure and make stuff fine, but what I wonder about: how to avoid conflicts with the packaging system? For example if some other package I install depends on Ruby, wouldn't the package manager install the (outdated) Ruby package and in the worst case overwrite my files? So I think I need some way to tell Ubuntu that Ruby is in fact already installed? 回答1: Save yourself the headache and use RVM

Invalid object name 'dbo.__MigrationHistory' using Database.Create; EF6.02 when connection string is passed in

£可爱£侵袭症+ 提交于 2019-11-28 11:52:50
I experience an error when trying to create a database using the following code. Note the problem does not happen if the connection string is not passed in. Also the problem happens when I run the program in the IDE. It does not happen if I run the program .exe or if I run the unit tests within the IDE. However if the database is created by running the unit tests or by running the .EXE then the __MigrationHistory table is created in the main tables section, not the system tables. public Context(string connString, bool AddInitialRecords ) : base(connString ?? "MyContextName") { this

Package manager in Visual Studio 2015 “407 (Proxy Authentication Required)”

不羁的心 提交于 2019-11-28 11:12:10
I understand this is an often asked question, however after days of research I've not found an answer to this particular problem. I have a new ASP.NET 5 (Core 1.0) MVC template that I'm trying to add a package to however each and every time I get in the Package Manager output: Response status code does not indicate success: 407 (Proxy Authentication Required). and the following at the top of solution explorer: my settings look fine and I am able to browse packages in the 'Manage Packages for Solution' screen. I understand I'm being requested to supply credentials so where do I enter them? On

Can't install phpDocumentor via Composer

房东的猫 提交于 2019-11-28 07:32:26
问题 In composer.json I've got { "require": { "phpdocumentor/phpdocumentor": "*" } } It's what is there because I'm trying to install phpDocumentor into an isolated folder with ./composer.phar install command. But what I'm getting is Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - phpdocumentor/phpdocumentor v2.0.0 requires phpdocumentor/template-abstract ~1.2

Feature comparison between npm, pip, pipenv and poetry package managers [closed]

拟墨画扇 提交于 2019-11-28 06:56:22
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last month . How do the main features of npm compare with pip , pipenv and poetry package managers? And how do I use those features of pipenv or poetry ? This could primarily help someone transitioning from being JavaScript developey to a python developer. I've never used used rubygems but it

How can I use npm for front-end dependencies?

烂漫一生 提交于 2019-11-28 05:43:51
I want to ask if it is possible (and generally a good idea) to use npm to handle front-end dependencies (Backbone, jQuery). I have found that Backbone, jQuery and so on are all available through npm but I would have to set another extraction point (the default is node_modules ) or symlink or something else... Has somebody done this before? Is it possible? What do I have to change in package.json ? Short answer: sort of . It is largely up to the module author to support this, but it isn't common. Socket.io is an example of such a supporting module, as demonstrated on their landing page. There

How to list the contents of a package using YUM?

放肆的年华 提交于 2019-11-28 02:34:41
I know how to use rpm to list the contents of a package ( rpm -qpil package.rpm ). However, this requires knowing the location of the .rpm file on the filesystem. A more elegant solution would be to use the package manager, which in my case is YUM. How can YUM be used to achieve this? Thomas Vander Stichele There is a package called yum-utils that builds on YUM and contains a tool called repoquery that can do this. $ repoquery --help | grep -E "list\ files" -l, --list list files in this package/group Combined into one example: $ repoquery -l time /usr/bin/time /usr/share/doc/time-1.7 /usr

How to list npm user-installed packages?

假如想象 提交于 2019-11-28 02:30:35
How do I list the user-installed package ONLY in npm ? When I do npm -g list it outputs every package and their dependencies, which is not what I want. This works pretty well too: npm list -g --depth=0 npm : the Node package manager command line tool list -g : display a tree of every package found in the user’s folders (without the -g option it only shows the current directory’s packages) depth 0 / — depth=0 : avoid including every package’s dependencies in the tree view You can get a list of all globally installed modules using: ls `npm root -g` As of 13 December 2015 Whilst I found the

Install things on Pepper

断了今生、忘了曾经 提交于 2019-11-28 00:33:02
How would I install things on Pepper, since I don't know what package manager it uses. I usually use apt on my Ubuntu machine and want to install some packages on Pepper. I'm not sure what package manager Pepper has (if any) and want to install some packages, but also only know the name of the package using apt (not sure if the package name is the same on other package managers). And if possible, would I be able to install apt on Pepper. Thanks. Note: From the research I've done, Pepper is using NaoQi which is based off Gentoo which uses portage. You don't have root access on Pepper, which