尝试从github安装模块导致:
package.json上的ENOENT错误.
使用快递轻松复制:
npm install https://github.com/visionmedia/express
抛出错误.
npm install express
作品.
为什么我不能从github安装?
这是控制台输出:
npm http GET https://github.com/visionmedia/express.git
npm http 200 https://github.com/visionmedia/express.git
npm ERR! not a package /home/guym/tmp/npm-32312/1373176518024-0.6586997057311237/tmp.tgz
npm ERR! Error: ENOENT, open '/home/guym/tmp/npm-32312/1373176518024-0.6586997057311237/package/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Linux 3.8.0-23-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "https://github.com/visionmedia/express.git"
npm ERR! cwd /home/guym/dev_env/projects_GIT/proj/somename
npm ERR! node -v v0.10.10
npm ERR! …
Run Code Online (Sandbox Code Playgroud) 面对vs2017中的bower包管理器面临的两个困难
在Visual Studio 2017中,找不到任何.bowerrc
文件bower.json
,那么如何设置目录属性?通过Manage Bower Packages UI安装后,包将文件存储在bower_components
文件夹中
如何使用这些软件包,如在VS 2013之前的版本中编写语法BundleConfig.cs
来管理下面的客户端软件包.现在在VS 2017中,如何在C#Core 2 ASP.NET MVC项目中使用这些包?
BundleConfig.cs
:
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/bower_components/jquery/dist/jquery.js",
"~/bower_components/jquery-file-upload/js/vendor/jquery.ui.widget.js",
"~/bower_components/jquery-file-upload/js/jquery.fileupload.js",
"~/bower_components/jquery-file-upload/js/jquery.iframe-transport.js"));
}
}
Run Code Online (Sandbox Code Playgroud)
visual-studio bower asp.net-core-mvc asp.net-core visual-studio-2017
随着我的Web项目的复杂性不断增加,我意识到手动下载外部JavaScript库非常容易出错,耗时并且随着时间的推移使项目的可维护性降低.
虽然Visual Studio有NuGet包管理器,但它没有bower那么强大.并非所有外部库都在NuGet上发布.
但是如何使用Visual Studio配置bower没有明确的帮助.请帮忙 !
bower ×2
asp.net-core ×1
github ×1
javascript ×1
node-modules ×1
node.js ×1
npm ×1
npm-install ×1