sp-dev-fx-webparts: react-script-editor fails at npm install because of dependency on phantomjs, which is at end of life cycle.

Category

  • Question
  • Bug
  • Enhancement

Authors

@wobba @VesaJuvonen

Expected or Desired Behavior

Running “npm install” should install all dependencies so that I can then progress onto testing the build, and then ideally deploying it.

Observed Behavior

After running “npm install”, I get a number of warnings followed by the following errors.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! phantomjs-prebuilt@2.1.16 install: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script.

Upon looking deeper into what phantomjs is, I’ve discovered that the project has been suspended. https://github.com/ariya/phantomjs/issues/15344

Steps to Reproduce

git clone https://github.com/SharePoint/sp-dev-fx-webparts.git cd C:\dev\sp-dev-fx-webparts\samples\react-script-editor npm install

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

After having our network admin take a look at the firewall, I was able to successfully, build and deploy! I’m closing this issue since the root cause was our firewall configuration.

Hi, I’ve got the same error when trying to do the npm install, and found this solution: removing the node_modules folder and the package-lock.json, and trying again with npm-install. Hope it helps. https://github.com/SharePoint/sp-dev-fx-webparts/issues/1027#issuecomment-550209837

Regards, Iosune.