Troubleshoot the NPM install times Error Chromedriver installation issue

Source: Internet
Author: User

A front-end project has recently been developed using VUE and is ready to be deployed to the server. After pulling the project code from the Git repository, run npm installThe installation project depends on the module, but the error message is as follows:

> [email protected] install/app/developer/git-repository/back_admin_front/node_modules/chromedriver> Node Install.js/app/developer/git-repository/back_admin_front/node_modules/chromedriver/chromedriver is not Writable:EACCES:permission denied, mkdir '/app/developer/git-repository/back_admin_front/node_modules/ Chromedriver/chromedriver ' Downloading Https://chromedriver.storage.googleapis.com/2.41/chromedriver_ Linux64.zipsaving to/tmp/chromedriver/chromedriver_linux64.zipreceived 781K ... Received 1575K ... Received 2359K ... Received 3143K ... Received 3852K Total. Extracting zip contentscopying to target path/app/developer/git-repository/back_admin_front/node_modules/ Chromedriver/lib/chromedriverchromedriver installation Failed {Error:EACCES:permission denied, mkdir '/app/developer /git-repository/back_admin_front/node_modules/chromedriver/lib/chromedriver ' at Object.fs.mkdirSync (fs.js:885:18 ) at/app/developer/git-repository/back_admin_front/node_modules/chromedriver/inStall.js:230:10 at <anonymous> errno: -13, Code: ' Eacces ', Syscall: ' mkdir ', path: '/app/developer/git-reposi Tory/back_admin_front/node_modules/chromedriver/lib/chromedriver '}npm WARN optional Skipping optional DEPENDENCY: [ Email protected] (node_modules/fsevents): npm WARN notsup skipping OPTIONAL dependency:unsupported platform for [ Email protected]: Wanted {"OS": "Darwin", "Arch": "Any"} (current: {"OS": "Linux", "Arch": "x64"}) NPM err! Code ELIFECYCLENPM err! errno 1NPM err! [email protected] Install: ' node Install.js ' NPM err! Exit Status 1NPM err! NPM err! Failed at the [email protected] install SCRIPT.NPM err! This is probably not a problem with NPM. There is likely additional logging output ABOVE.NPM err!     A Complete log of the This run can be found IN:NPM err! /root/.npm/_logs/2018-10-10t02_21_34_357z-debug.log

Workaround, install the following modules first:

npm install --ignore-scripts

Troubleshoot the NPM install times Error Chromedriver installation issue

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.