install

运行时报错 npm start — babel-eslint 版本兼容性问题

心不动则不痛 提交于 2020-01-10 12:23:40
npm install 报错:verbose stack SyntaxError: Unexpected end of JSON input while 进入你的项目目录:cd 项目名称 重新设置链接:npm set registry https://registry.npmjs.org/ 重置cache:npm cache clean --force 安装模块包:npm install 如果失败重新运行:4、5 启动服务:ng serve 测试网页:打开浏览器 运行时报错 npm start — babel-eslint 版本兼容性问题 npm 安装一些包失败了的看过来(npm国内镜像介绍) 出现了npm ERR! cb() never called!错误 执行npm i 命令时,出现了npm ERR! cb() never called!错误 解决方案: 1、首先清除你的npm缓存: sudo npm cache clean -f 一般情况执行完后再试下 应该就OK了 2、如果1方法不奏效的话,只能采用升级覆盖安装: 清除完缓存后,安装最新版本的Node helper: npm install -g n 告诉助手(n)安装最新的稳定版Node: sudo n stable 完成上一个命令后,您将获得最新信息。让我们再次运行安装: npm install ------------

npm安装教程

♀尐吖头ヾ 提交于 2020-01-10 09:40:20
一、使用之前,我们先来掌握3个东西是用来干什么的。 npm: Nodejs下的包管理器。 webpack: 它主要的用途是通过CommonJS的语法把所有浏览器端需要发布的静态资源做相应的准备,比如资源的合并和打包。 vue-cli: 用户生成Vue工程模板。(帮你快速开始一个vue的项目,也就是给你一套vue的结构,包含基础的依赖库,只需要 npm install就可以安装) 开始: 如图,下载8.9.3 LTS (推荐给绝大部分用户使用) 双击安装 可以使用默认路径,本例子中自行修改为d:\nodejs 一路点Next 点Finish完成 打开CMD,检查是否正常 再看看另外2个目录,npm的本地仓库跑在系统盘c盘的用户目录了(没见到npm-cache是因为没有用过,一使用缓存目录就生成了),我们试图把这2个目录移动回到D:\nodejs 先如下图建立2个目录 然后运行以下2条命令 npm config set prefix "D:\nodejs\node_global" npm config set cache "D:\nodejs\node_cache" 如上图,我们再来关注一下npm的本地仓库,输入命令npm list -global 输入命令npm config set registry=http://registry.npm.taobao.org 配置镜像站

AttributeError: module 'cv2' has no attribute 'VideoCapture' 在树莓派上报错的问题: (已解决)

£可爱£侵袭症+ 提交于 2020-01-10 07:33:36
AttributeError: module ‘cv2’ has no attribute ‘VideoCapture’ 在树莓派上报错的问题: (已解决) 买了一台4B 做人脸识别,结果CV2 一直不给力疯狂报错,经过三天的排查,发现了树莓派上的一个坑: pip 3 install opencv-python 安装的版本是4.X.X,在我的设备上虽然说是装上了但是会一直报错。 我的解决办法是 pip 3 install opencv - python == 3.4 .6 .27 亲测这个版本可以用 同理,还有一个 pip3 install opencv-contrib-python 也没法正常用 解决办法: pip3 install opencv - contrib - python == 3.4 .2 .16 来源: CSDN 作者: weixin_44811203 链接: https://blog.csdn.net/weixin_44811203/article/details/103872432

How to install xgboost in python on MacOS?

旧巷老猫 提交于 2020-01-10 07:07:53
问题 I am a newbie and learning python. Can someone help me- how to install xgboost in python. Im using Mac 10.11. I read online and did the below mentioned step, but not able to decode what to do next: pip install xgboost - 回答1: It's a little more complicated if you want to use multi-threading. For the record, I am using a Mac with OS X 10.10 (Yosemite). It took me a while to work through the various issues, but it is now running nicely in my Anaconda (Py36) environment. For multi-threading you

Google app engine php executable path not found

廉价感情. 提交于 2020-01-10 04:09:26
问题 Followed the steps given on the official google app engine page for installing the sdk for php-> https://developers.google.com/appengine/docs/php/gettingstarted/helloworld but I get this error in my browser on opening localhost. The path specified with the --php_executable_path flag () does not exist. How to set it ? Installed on Ubuntu. 回答1: When starting dev appserver via the script one can pass in --php_executable_path pointing to the location of your php executable. The reason for the

使用 Python

这一生的挚爱 提交于 2020-01-10 03:36:52
使用 Python Python 官网及镜像 官网 : https://www.python.org/ 镜像 : http://npm.taobao.org/mirrors/python/ 安装玩Python,将安装目录加入Windows搜索路径。 配置镜像 : 清华: https://pypi.tuna.tsinghua.edu.cn/simple 阿里云: http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣: http://pypi.douban.com/simple/ 安装包 临时方式 在CMD中输入(Python 安装目录要加入路径!): pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas 从清华大学的镜像安装pandas包,同时也安装相依的包。 永久方式 Windows下,在系统当前用户目录(%USERPROFILE%)中新建一个pip目录:%USERPROFILE%\pip,新建文件pip.ini,内容如下: [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted

Ruby on Rails Beta 3 Install on Snow Leopard - file not found

佐手、 提交于 2020-01-10 00:37:32
问题 I tried to install the new beta on my system with the command: sudo gem install rails --pre but no matter what I tried, I still get this damn error: Successfully installed rails-3.0.0.beta3 1 gem installed Installing ri documentation for rails-3.0.0.beta3... File not found: lib Since I'm very new to ruby, I really don't know what to do. How can I finish installing this? Is this installed already? Why does it abort here? 回答1: All you need to run is gem install rdoc , follow its instructions,

Python开发之pip使用详解

倾然丶 夕夏残阳落幕 提交于 2020-01-10 00:17:24
1 pip的优点   pip如今已经成为了Python的一大特色,可以很方便得协助Python开发者进行包管理。综合来说,匹配拥有如下优点: pip提供了丰富的功能,其竞争对手easy_install只支持安装,没有提供写在和显示已安装列表的功能。 pip能够很好地支持虚拟环境。 pip可以通过requirements.txt集中管理依赖; pip能够处理二进制格式(.whl); pip是先下载后安装,如果安装失败,也会清理干净,不会留下一个中间状态。 2 pip常用命令   pip提供的命令不多,但是都很实用。    (1)pip查看版本与升级   查看pip版本:pip -V    升级pip :pip install --upgrade pip   上面图片中,因为我的电脑中的pip已经是最新,所有并没有升级。    (2)查看已安装第三方包列表:pip list    (3)pip安装第三方包:pip install 直接安装:pip install 包名   这一命令会默认安装最新版本的包,如果想要安装指定版本的第三方包,可以通过以下命令指定版本。 指定版本安装:pip install 包名==版本号 通过.whl安装包安装:pip install .whl安装包名   这种方式通常在直接pip安装出现异常时使用。.whl安装包需在安装前下载好,下面推荐一个常用的

Linux下安装xrdp

梦想的初衷 提交于 2020-01-09 20:22:47
Linux 下安装 xrdp 使用rdp协议访问远程Linux桌面 一般情况下,如果需要登陆远程Linux系统,我们会使用ssh/telnet来完成,如果需要登陆到远程Linux系统的桌面环境,我们可能会使用VNC。 VNC是大部分Linux发行版默认的基于RFB协议的远程桌面程序,但对于普通用户来说,VNC的用户体验并不好,比较慢,还需要安装客户端。 Windows的远程桌面基于RDP协议,在Linux下,我们也是可以找到开源的rdpserver的,这就是xrdp。 下面,我来和大家介绍安装centos下xrdp的安装方法。 1.首先安装vnc yum install -y tigervnc-server 启动vnc服务并设置开机自动启动 service vncserver start chkconfig vncserver on 2.安装xrdp,这里我下载最新版的xrdp安装包, 官网下载地址:http://jaist.dl.sourceforge.net/project/xrdp/xrdp/0.6.1/xrdp-v0.6.1.tar.gz wget http://jaist.dl.sourceforge.net/project/xrdp/xrdp/0.6.1/xrdp-v0.6.1.tar.gz 解压并安装 tar -zxvf xrdp-v0.6.1.tar.gz cd