简体   繁体   English

我在为 Angular 安装节点模块 depandances 时遇到问题

[英]I have a problem installing my node module depandances for Angular

When I do npm install, I get an error at the end:当我安装 npm 时,最后出现错误:

error syscall unlink
22396 error The operation was rejected by your operating system.
22396 error It's possible that the file was already in use (by a text editor or antivirus),
22396 error or that you lack permissions to access it.
22396 error
22396 error If you believe this might be a permissions issue, please double-check the
22396 error permissions of the file and its containing directories, or try running
22396 error the command again as root/Administrator (though this is not recommended).
22397 verbose exit [ -4048, true ]

I do not know why我不知道为什么

This usually happens when that particular file is busy or currently in use.这通常发生在该特定文件正忙或当前正在使用时。

You can fix this by.您可以通过以下方式解决此问题。

  1. Close your code editor and try again关闭您的代码编辑器并重试
  2. Close your any instance of the application if this does not still fix it.如果仍然无法修复它,请关闭应用程序的任何实例。
  3. Then restart your system to terminate any process that maybe using the file and try again.然后重新启动系统以终止任何可能使用该文件的进程并重试。
  4. If you are on a linux or mac machine use sudo npm install ${package_name}如果您使用的是 linux 或 mac 机器,请使用sudo npm install ${package_name}

Hope this helps希望这可以帮助

Have you tried this你试过这个

  1. open terminal with administrator permission (run as administrator).以管理员权限打开终端(以管理员身份运行)。
  2. close all project related files and excute command again.关闭所有项目相关文件并再次执行命令。

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

相关问题 我将 bcrypt 安装到我的 package.json 中没有什么问题 - I have little problem installing bcrypt to my package.json 手动加载我自定义的节点模块(Angular 4.x) - Manually load in node module that I have customised (Angular 4.x) 我在安装 npm 模块时遇到问题 - I encounter a problem when installing an npm module 我是否需要为与我的角度应用程序相关的每个文件声明一个角度模块var? - Do i have to declare an angular module var for each file related to my angular app? 节点模块未安装 - Node module not installing 我的 function 有问题,我不想用现有坐标创建节点 - I have a problem about my function, I don't want to create a node with existing coordinates 使用节点/角度,如何调用api(使用节点模块中的方法)并将数据发送到示波器? - Using Node/Angular, how do I make a call to an api (using methods from a node module) and have the data sent to the scope? 我的 videojs 节点模块有问题 - I have a problem with videojs node-modules 我在 discord 上的代码中有错误,我使用 node 。 和节点 index.js - 错误:找不到模块 - I have a error in my code on discord and i use node . and node index.js - Error: Cannot find module 我在使用 ckeditor 上传图片时遇到问题 - I have a problem with uploading my images with ckeditor
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM