ubuntu系统下面PhantomJS not found on PATH
完整报错如下:
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
^C
(python3.6) root@iZuf62cvmxv23irc7lrcobZ:~/saleor_docker/saleor-storefront# cnpm install phantomjs@02.1.1
✔ Installed 1 packages
✔ Linked 11 latest versions
[1/1] scripts.install phantomjs@02.1.1 run "node install.js", root: "/root/saleor_docker/saleor-storefront/node_modules/_phantomjs@2.1.1@phantomjs"
PhantomJS not found on PATH
Phantom installation failed TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.join (path.js:1236:7)
at findSuitableTempDirectory (/root/saleor_docker/saleor-storefront/node_modules/_phantomjs@2.1.1@phantomjs/install.js:126:30)
at /root/saleor_docker/saleor-storefront/node_modules/_phantomjs@2.1.1@phantomjs/install.js:441:19
at nextTickCallback (/root/saleor_docker/saleor-storefront/node_modules/_kew@0.7.0@kew/kew.js:47:28)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9) TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.join (path.js:1236:7)
at findSuitableTempDirectory (/root/saleor_docker/saleor-storefront/node_modules/_phantomjs@2.1.1@phantomjs/install.js:126:30)
at /root/saleor_docker/saleor-storefront/node_modules/_phantomjs@2.1.1@phantomjs/install.js:441:19
at nextTickCallback (/root/saleor_docker/saleor-storefront/node_modules/_kew@0.7.0@kew/kew.js:47:28)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
[npminstall:runscript:error] phantomjs@02.1.1 scripts.install run "node install.js" error: RunScriptError: Run "sh -c node install.js" error, exit code 1
✖ Install fail! RunScriptError: post install error, please remove node_modules before retry!
Run "sh -c node install.js" error, exit code 1
RunScriptError: post install error, please remove node_modules before retry!
Run "sh -c node install.js" error, exit code 1
at ChildProcess.proc.on.code (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:96:21)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
有的人觉得这么简单的问题你都不会还要写博客记录一下?
实际情况是,即使指定路径下面有这个文件(只适用于Centos和Windows,不适用于Ubuntu),你安装docker的时候还会让你重新下载,懵逼不懵逼?
/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
最终解决方案:
cnpm install phantomjs-prebuilt@2.1.14 --ignore-scripts
如果是saleor-dashboard,上述方案有效,
如果是saleor-storefront, 上述方案无效。
另外,诚恳的建议:
没啥必要,不要去碰package.json里面对phantomjs有依赖的实验。
ubuntu系统下面PhantomJS not found on PATH相关推荐
- ubuntu系统php环境变量设置,Ubuntu系统环境变量详解
使用Ubuntu 进行开发绕不开的就是环境变量的配置,由于Linux系统严格的权限管理,造成Ubuntu系统有多个环境变量配置文件,如果不了解其调用顺序,很有可能遇到配置了环境变量,而没有其作用的问题 ...
- Ubuntu系统---安NVIDIA 驱动后 CUDA+cuDNN 安装
Ubuntu系统---安NVIDIA 驱动后 CUDA+cuDNN 安装 --------------------------------------------@20190726--------- ...
- 安卓9.0刷linux,Ubuntu系统下编译Android 9.0系统
8种机械键盘轴体对比 本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选? 前言 在Ubuntu系统下编译Android系统.哎呀不知道是不是换了新电脑的缘故,这次编译居然从安装JDK和配置环境下 ...
- DL之yolov3:使用yolov3算法时需要对Ubuntu系统进行配置的简介、过程步骤之详细攻略
DL之yolov3:使用yolov3算法时需要对Ubuntu系统进行配置的简介.过程步骤之详细攻略 目录 yolov3算法时需要对Ubuntu系统进行配置的简介 Ubuntu系统进行配置的过程步骤 第 ...
- 解决Ubuntu系统中文乱码显示问题,终端打开文件及查看目录
解决Ubuntu系统中文乱码显示问题 [日期:2014-02-20] 来源:Linux社区 作者:njchenyi [字体:大 中 小] 我是先安装了Ubuntu 12.04 Server,然后安装 ...
- ubuntu系统中samba服务器搭建
当我们需要windows和linux更好的进行文件交互时,使用Samba服务是一个不错的选择,本文介绍如何在linux中搭建Samba服务和怎样在windows下访问linux共享文件. 1.安装和卸 ...
- 安装ubuntu系统步骤
1.下载uiso9_cn.exe制作优盘启动盘,优盘先格式化 2.http://releases.ubuntu.com/20.04/ 里面下载ubuntu-20.04.1-desktop-amd64 ...
- docker安装gamit_科学网—Ubuntu系统GAMIT/GLOBK程序安装 - 陈超的博文
最近开始学习GAMIT,网上资料还是蛮多的,但是感觉都是东拼西凑的,一点都不系统,一点不适合初学者.安装教程也是乱七八糟的,下面把我的安装过程分享一下:(我也是参考的网上一个教程,很久以前下载的,地址 ...
- Ubuntu系统---C++之Eclipse 开始工程项目
Ubuntu系统---C++之Eclipse 开始工程项目 安装完Eclipse,那就像其它项目一样,先要测试一下是否能用. 一.测一个hello world例子 二.利用OpenCV测试一个显示图片 ...
最新文章
- Dynamips和Vmware完成CCVP试验(4)
- 简谈WP,IOS,Android智能手机OS
- nginx之静态资源访问和负载均衡的使用!
- Atitit RSA非对称加密原理与解决方案
- python import 问题
- 我的新发现:AVL树旋转的一个特性
- LeetCode 2044. 统计按位或能得到最大值的子集数目(状态压缩DP)
- WinSCP中文版FTP工具 V5.19.5
- 学者:比特币暴涨有合理性但仍应警惕其风险
- 自定义控件:属性为控件需要注意的地方
- mysql取整,小数点处理函数floor(), round()
- After Effects报警最后日志消息是:<760504><SonyRawDecoder><5>
- java uint16 t_uint8_t / uint16_t / uint32_t /uint64_t 的简单介绍
- Exchange 2010 使用http访问 OWA
- hcse5.0全套PPT档
- MATLAB 将txt文本转化为tif图片格式
- 珠海金湾区红旗图书馆 WIFI 连接方法
- 百度地图商家标注,查询附近3000米内的商家并标到地图上
- n1盒子openwrt某个容器无法启动 启动直接死机
- MySQL--基础知识点--64--等值连接/自连接/自然连接/外连接
热门文章
- UVA - 1587 Box
- 机器学习中的相似性度量 (转)
- C++教程之lambda表达式一
- MyEclipse6.5安装SVN插件的方法--在线安装
- 分析ip流量的python脚本
- arcgis9.2的安装方法
- C Primer Plus(第六版):C语言概述
- python读取文件夹下所有图片_python 读取单文件夹中的图片文件信息保存到csv文件中...
- 驱动精灵2007_畅玩Steam的Win10游戏掌机发布! |莱莎2新战斗动画,肉腿致命驱动~...
- bootstrap算法_决策树算法之随机森林