简体   繁体   English

npm无法在窗口上安装phantomJS

[英]npm cannot install phantomJS on window

screenshot1 在此处输入图片说明

I use npm to install phantomjs locally,but I got errors.I can use npm install jquery and so on successfully.So I don`t know what is wrong and how can I install phantomjs ?Was it blocked in China? 我使用npm在本地安装phantomjs,但出现错误。我可以成功使用npm install jquery等等。所以我不知道出了什么问题,怎么安装phantomjs?

OK,I am sure I was blocked.I used cnpm install phantomjs -g to install and successed.If you live in China you can use cnpm when you can not use npm well. 好的,我确定我被阻止了。我使用cnpm install phantomjs -g进行安装并成功。如果您居住在中国,可以在无法很好使用npm使用cnpm The link to cnpm 指向cnpm的链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM