我在为 Angular 安装节点模块 depandances 时遇到问题
I have a problem installing my node module depandances for Angular
当我执行 npm install 时,最后出现错误:
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 ]
不知道为什么
这通常发生在特定文件正忙或当前正在使用时。
您可以通过以下方式解决此问题。
- 关闭代码编辑器并重试
- 如果仍不能解决问题,请关闭应用程序的任何实例。
- 然后重新启动系统以终止可能使用该文件的任何进程并重试。
- 如果你在 linux 或 mac machine 使用
sudo npm install ${package_name}
希望对您有所帮助
你试过这个吗
- 使用管理员权限打开终端(运行 作为管理员)。
- 关闭所有项目相关文件并再次执行命令。
当我执行 npm install 时,最后出现错误:
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 ]
不知道为什么
这通常发生在特定文件正忙或当前正在使用时。
您可以通过以下方式解决此问题。
- 关闭代码编辑器并重试
- 如果仍不能解决问题,请关闭应用程序的任何实例。
- 然后重新启动系统以终止可能使用该文件的任何进程并重试。
- 如果你在 linux 或 mac machine 使用
sudo npm install ${package_name}
希望对您有所帮助
你试过这个吗
- 使用管理员权限打开终端(运行 作为管理员)。
- 关闭所有项目相关文件并再次执行命令。