但是,在安装sharepoint生成器时,它会抛出以下错误。 错误代码:ELIFECYCLE 错误编号:1 错误:phantonjs-prebuilt@2.1.16安装:'node install.js' 退出状态1 在phantomjs-prebuilt@2.1.16安装脚本'节点失败install.js' 这可能不是问题npm 请帮我解决这个问题。 谢谢解决方案 你的Node JS版本是否为6.11.5? 请尝试安装 来自GitHub的phantomjs来检查它是否有效。 https://github.com/Medium/phantomjs 以下是关于同一问题的类似帖子供您参考: https ://stackoverflow.com/questions/40992231/failed-at-the-phantomjs-prebuilt2-1-13-install-script-node-install-js 最好的问候 Lee Liu I am getting an error while setting up development environment for SharePoint Framework.I followed the same steps while installation and following components are installed successfullyVersion of Node JS:6.11Version of NPM :3.10.10Version of Gulp: 3.9.1version of Yeoman: 2.0.0But, While installing sharepoint generator it is throwing the following error. Error code: ELIFECYCLEError no: 1Error:phantonjs-prebuilt@2.1.16 install: 'node install.js'Exit status 1Failed at the phantomjs-prebuilt@2.1.16 install script 'node install.js'This is probably not a problem with npmKindly Please help me to sort out this issue.Thanks 解决方案Hi,Is your Node JS version 6.11.5?Please try to install the phantomjs from GitHub to check if it works.https://github.com/Medium/phantomjsHere is a similar thread about the same issue for your reference:https://stackoverflow.com/questions/40992231/failed-at-the-phantomjs-prebuilt2-1-13-install-script-node-install-jsBest regardsLee Liu 这篇关于安装SharePoint Framework时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!