NPM install Error in Windows environment: Operation not permitted, rename workaround _node.js

Source: Internet
Author: User

Objective

Recently found a problem, run the npm install command to install a dependency pack, on the Mac vagrant installed on the virtual machine is not a problem, on the Aliyun CentOS is not a problem, but in the Windows environment is also a vagrant installed environment of the same virtual machine is not successful, the error is as follows:

NPM err! Error:EPERM:operation not permitted, rename '/usr/share/nginx/html/tanteng.me/node_modules/duplexify '-> '/usr/ Share/nginx/html/tanteng.me/node_modules/.duplexify. DELETE '

You have previously encountered a symbol error on Windows NPM installation dependencies, and the solution is sudo npm install –no-bin-links to add the following parameters.

Lists the installation directories for Node.js, and the permissions properties of the directory are as follows:

Here to execute the command:

sudo chown vagrant:vagrant n node npm

Remember to also clear the NPM cache:

NPM Cache Clean

Again sudo npm install –no-bin-links , the Windows environment requires the following parameters to be taken even on the virtual machine.

Well, this time the problem will be solved. This is the full content of this article, I hope this article will be able to meet the same problem friends have helped.

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.