npm

Looking for a Dual Listbox with AngularJS and Bootstrap

ε祈祈猫儿з 提交于 2020-08-06 07:40:10
问题 I am looking for a component like this to be included in my project: http://geodan.github.io/duallistbox/sample-100.html I want to install it with npm. The problem is that I tested some of the examples which are over there, but without success (I get exceptions, or there is no npm, only bower) These are the examples I tested. https://github.com/alexklibisz/angular-dual-multiselect-directive https://github.com/frapontillo/angular-bootstrap-duallistbox http://www.bootply.com/mRcBel7RWm Any

如何在windows(博主测试了win7,10) 环境下搭建私有链IPFS(星际文件)服务

早过忘川 提交于 2020-08-06 06:27:16
1、下载ipfs服务 下载地址: https://dist.ipfs.io/#go-ipfs 直接下载地址: https://dist.ipfs.io/go-ipfs/v0.5.1/go-ipfs_v0.5.1_windows-amd64.zip 2、下载webui 很多论坛,博客上说,只要启动ipfs服务就可以访问 http://127.0.0.1:5001/webui 就能打开,其实不然,博主测试时发现,确实访问不会出现404但是很慢打不开(发现是网络原因,等一段时间就好),也可以引用webui作为IPFS的可视化界面 有以下三种方式: ipfs webui ipfs IPFS Companion (谷歌或者火狐浏览器的拓展插件) ipfs desktop 桌面可视化 具体的操作可以百度自行下载,也可以联系博主一起探讨。 3、初始化ipfs 进入到ipfs目录中,你可以看到有如下文件 打开cmd运行 ipfs.exe init 解决webui跨域以及关联,执行如下命令 ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"http://localhost:3000\"]" ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods

vue告警信息:{ parser: "babylon" } is deprecated.

▼魔方 西西 提交于 2020-08-06 06:14:43
告警信息: 13% building modules 28/40 modules 12 active ...dex=0!\src\App.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }. 95% emitting 是prettier版本导致的,直接在项目中:npm install prettier@~1.12.0 -d 然后重新npm run dev 来源: oschina 链接: https://my.oschina.net/u/4405407/blog/4278989

解决:'webpack-dev-server' 不是内部或外部命令,也不是可运行的程序 或批处理文件。

夙愿已清 提交于 2020-08-06 05:37:36
提示webpack-dev-server错误: 前往项目根目录删除node_modules文件夹,然后在项目根目录路径下的终端运行"npm install"等待安装完之后,再次运行“npm run dev”,有些人的是马上就可以了,然而往往还会有人仍然报类似的错误,这个时候你只需要再次重复相同的操作即可,“一次不成再删再安装”! 解决:'webpack-dev-server' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 来源: oschina 链接: https://my.oschina.net/u/4302345/blog/4459949

npm install报错解决fatal: Unable to look up github.com (port 9418) npm ERR! exited with error code: 128

末鹿安然 提交于 2020-08-06 04:50:56
解决办法: 执行 git config --global url."https://".insteadOf git:// 再npm install,问题解决。 别人的解决办法: npm cache clean --force git config --global http.sslverify "false" npm cache clear 来源: oschina 链接: https://my.oschina.net/soho00147/blog/4327338

如何将package.json中的每个依赖关系更新为最新版本?

我的梦境 提交于 2020-08-06 04:31:18
问题: I copied package.json from another project and now want to bump all of the dependencies to their latest versions since this is a fresh project and I don't mind fixing something if it breaks. 我从另一个项目复制了package.json,现在想将所有依赖项都升级到最新版本,因为这是一个新项目,如果出现问题,我不介意进行修复。 What's the easiest way to do this? 最简单的方法是什么? The best way I know of now is to run npm info express version then update package.json manually for each one. 我现在所知道的最好方法是运行 npm info express version 然后为每个 npm info express version 手动更新package.json。 There must be a better way. 肯定有更好的办法。 { "name": "myproject", "description": "my node project

package.json中的tilde(〜)和caret(^)有什么区别?

时光怂恿深爱的人放手 提交于 2020-08-06 04:28:05
问题: After I upgraded to latest stable node and npm , I tried npm install moment --save . 升级到最新的稳定 node 和 npm ,我尝试了 npm install moment --save 。 It saves the entry in the package.json with the caret ^ prefix. 它将条目以尖号 ^ 保存在 package.json 。 Previously, it was a tilde ~ prefix. 以前,它是一个波浪号 ~ 前缀。 Why are these changes made in npm ? 为什么在 npm 进行这些更改? What is the difference between tilde ~ and caret ^ ? 是什么波浪之间的区别 ~ 和尖 ^ ? What is the advantages over others? 与其他相比有什么优势? 解决方案: 参考一: https://stackoom.com/question/1VkUa/package-json中的tilde-和caret-有什么区别 参考二: https://oldbug.net/q/1VkUa/What-s-the-difference

webpack怎么安装和配置?

一个人想着一个人 提交于 2020-08-06 04:07:33
先全局安装 : npm i webpack webpack-cli -g 在工作文件夹 初始化 npm init -y 会出现一个package.json文件 在工作文件夹 根目录新建一个配置文件 ,js格式 webpack.config.js 在配置文件写 var path = require('path'); var HtmlWebpackPlugin = require('html-webpack-plugin'); //自动引入插件 module.exports = { mode:"development", //开发环境 //入口 entry:path.join(__dirname,'./src/main.js'), /*出口*/ output:{ path:path.join(__dirname,'./dist'), filename:"bundle.js" }, /*插件 是一 数组 里面的插件都是构造函数 需要 */ plugins:[ new HtmlWebpackPlugin({ template: path.join(__dirname,'./src/index.html'), filename: "index.html" }) ], //配置模块 /************************************************** *模块

Day12-微信小程序实战-交友小程序-搭建服务器与上传文件到后端并控制云开发数据库-项目总结与github代码发布流程(附上项目全部完整代码学习使用)

一笑奈何 提交于 2020-08-06 03:45:22
要搞一个小型的cms内容发布系统 因为小程序上线之后,直接对数据库进行操作的话,慧出问题的,所以一般都会做一个管理系统,让工作人员通过这个管理系统来对这个数据库进行增删改查 微信小程序其实给我们提供了这样的能力了 (也就是可以在自己已有的服务器来进行云操作,所以就可以通过这个CMS内容管理系统来对云数据库进行修改) 我们就要建立自己的web服务器--》搭建一个简易的服务器 https://koa.bootcss.com/ 这个是要node版本是7以上,可以在node官网去搭建,我这边之前按照过了,直接cmd打开,通过 node -v查看版本 然后还要下载一个 cnpm,这个主要是下载第三方模块用的 https://www.cnblogs.com/biglovevolcaner/p/6707746.html 打开cmd,直接输入这位大佬博客里面的语句进行安装即可了 这些都准备好了之后,就可以开始koa2的服务器搭建了 我们选择koa的脚手架 koa-generator https://blog.csdn.net/sinat_39049092/article/details/104575018 (跟这个博客到第三步就行) 然后我们就可以到想要搭建系统的文件中(我在d盘新建了一个weapp文件) 在cmd中输入 D:\weapp 之后输入 d:即可跳转 输入 koa2 miaomiao