相关疑难解决方法(0)

自制的npm install:无法符号链接

所以我犯了错误,试图摆脱所有sudo依赖.我从网站上下载了npm作为包,并进行了手动/全局安装.但似乎我总是不得不与sudo一起运行...所以我试图卸载并运行自制程序.

现在我无法获得节点或npm甚至运行...我想我必须链接brew链接他们但我收到此错误:

Could not symlink share/doc/node/gdbinit
Target /usr/local/share/doc/node/gdbinit
already exists. You may want to remove it:
  rm '/usr/local/share/doc/node/gdbinit'
Run Code Online (Sandbox Code Playgroud)

我试图删除它:我已经得到了许可被拒绝.

我试过运行brew prune.我尝试卸载然后使用以下步骤重新安装:

$ brew uninstall npm
$ brew uninstall node
$ npm uninstall npm -g
$ sudo rm -rf /usr/local/lib/node_module
Run Code Online (Sandbox Code Playgroud)

错误:"brew链接"步骤未成功完成

我正在运行Yosemite 10.10.5.我安装了git版本2.6.0.我的自制软件已更新.一位酿酒医生给我这个警告:

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
    node
Run Code Online (Sandbox Code Playgroud)

不知道从哪里开始.我试图失去对CodeKit的依赖,并且开始运行.

homebrew node.js npm

46
推荐指数
3
解决办法
4万
查看次数

标签 统计

homebrew ×1

node.js ×1

npm ×1