使用npm install作为MS-Windows系统帐户
发布时间:2020-12-13 23:14:04 所属栏目:Windows 来源:网络整理
导读:我有一个在 Windows上运行的节点应用程序,我希望能够自动更新.当我以管理员帐户运行npm install -d时 – 它工作正常,但是当我尝试通过我的自动化软件(以本地系统运行)运行它时,当我尝试从私有模块安装私有模块时出现错误git存储库: npm ERR! git clone git@
我有一个在
Windows上运行的节点应用程序,我希望能够自动更新.当我以管理员帐户运行npm install -d时 – 它工作正常,但是当我尝试通过我的自动化软件(以本地系统运行)运行它时,当我尝试从私有模块安装私有模块时出现错误git存储库:
npm ERR! git clone git@bitbucket.org:team/repository.git fatal: Could not change back to 'C:/Windows/system32/config/systemprofile/AppData/Roaming/npm-cache/_git-remotes/git-bitbucket-org-team-repository-git-06356f5b': No such file or directory npm ERR! Error: Command failed: fatal: Could not change back to 'C:/Windows/system32/config/systemprofile/AppData/Roaming/npm-cache/_git-remotes/git-bitbucket-org-team-repository-git-06356f5b': No such file or directory npm ERR! npm ERR! at ChildProcess.exithandler (child_process.js:637:15) npm ERR! at ChildProcess.EventEmitter.emit (events.js:98:17) npm ERR! at maybeClose (child_process.js:735:16) npm ERR! at Socket.<anonymous> (child_process.js:948:11) npm ERR! at Socket.EventEmitter.emit (events.js:95:17) npm ERR! at Pipe.close (net.js:451:12) npm ERR! If you need help,you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:Program Filesnodejs\node.exe" "C:Program Filesnodejsnode_modulesnpmbinnpm-cli.js" "install" "-d" npm ERR! cwd D:nodeapp npm ERR! node -v v0.10.8 npm ERR! npm -v 1.2.23 npm ERR! code 128 只是使用相同的系统运行git clone工作正常.有任何想法吗? 更新:以下是_git_remotes目录的权限: > get-acl C:Windowssystem32configsystemprofileAppDataRoamingnpm-cache_git-remotes |Format-list Path : Microsoft.PowerShell.CoreFileSystem::C:Windowssystem32configsystemprofileAppDataRoamingnpm-cache_git-remotes Owner : BUILTINAdministrators Group : NT AUTHORITYSYSTEM Access : NT AUTHORITYSYSTEM Allow FullControl BUILTINAdministrators Allow FullControl Audit : Sddl : O:BAG:SYD:AI(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA)
不要将自动化软件作为本地系统运行.而是创建一个新的专用服务帐户(如果需要,管理员级别).您也可以这样设置,以便此帐户只能从此系统登录而不能远程登录.我会先尝试以非管理员身份运行该软件.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- batch-file – 用于在windows命令中循环打印日期两次
- active-directory – Office 365 ADFS身份验证不适用于子域
- windows – 在explorer-shell-extention中创建子菜单?
- windows – 如何在批处理脚本中使用WMIC获取内存利用率百分
- windows-server-2008 – 如何通过电子邮件发送预定任务的输
- windows-xp – 如何通知内网用户不使用客户端应用程序?
- windows – java.exe和javaw.exe有什么区别?
- windows – Active Directory的负载测试工具?
- windows – 如何从批处理文件中仅删除空目录
- windows-server-2008-r2 – windws server 2008 udp组播性能
推荐文章
站长推荐
热点阅读