Node.js 我无法通过我的公司代理获得鲍尔

Node.js 我无法通过我的公司代理获得鲍尔,node.js,osx-elcapitan,bower-install,Node.js,Osx Elcapitan,Bower Install,以下是我的最新错误。我不能向一个问题添加超过2个链接,因此我作弊,xx=http project mmf3jj$ sudo npm install && bower install npm WARN package.json UPS_WEM@0.0.1 No license field. /usr/local/lib/node_modules/bower/lib/node_modules/update-notifier/node_modules/configstore/inde

以下是我的最新错误。我不能向一个问题添加超过2个链接,因此我作弊,xx=http

project mmf3jj$ sudo npm install && bower install

npm WARN package.json UPS_WEM@0.0.1 No license field.
/usr/local/lib/node_modules/bower/lib/node_modules/update-notifier/node_modules/configstore/index.js:53

                throw err;
                ^

Error: EACCES: permission denied, open '/Users/mmf3jj/.config/configstore/update-notifier-bower.json'
You don't have access to this file.

    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.readFileSync (fs.js:397:15)
    at Object.create.all.get (/usr/local/lib/node_modules/bower/lib/node_modules/update-notifier/node_modules/configstore/index.js:34:26)
    at Object.Configstore (/usr/local/lib/node_modules/bower/lib/node_modules/update-notifier/node_modules/configstore/index.js:27:44)
    at new UpdateNotifier (/usr/local/lib/node_modules/bower/lib/node_modules/update-notifier/index.js:35:17)
    at module.exports (/usr/local/lib/node_modules/bower/lib/node_modules/update-notifier/index.js:120:23)
    at Object.<anonymous> (/usr/local/lib/node_modules/bower/lib/bin/bower.js:140:20)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
更新

我按照苹果的指示关闭了新的安全设置。这使得npm和其他一切都发挥了作用,但鲍尔仍然有这个问题

Machintosh: user$ sudo bower install
bower ESUDO         Cannot be run with sudo

Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.

http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814

You can however run a command with sudo using --allow-root option
Machintosh:folder user$ bower install
/usr/local/lib/node_modules/bower/lib/node_modules/update-notifier/node_modules/configstore/index.js:53



Error: EACCES: permission denied, open '/Users/user/.config/configstore/update-notifier-bower.json'
You don't have access to this file.

    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.readFileSync (fs.js:397:15)
    at Object.create.all.get (/usr/local/lib/node_modules/bower/lib/node_modules/update-notifier/node_modules/configstore/index.js:34:26)
    at Object.Configstore (/usr/local/lib/node_modules/bower/lib/node_modules/update-notifier/node_modules/configstore/index.js:27:44)
    at new UpdateNotifier (/usr/local/lib/node_modules/bower/lib/node_modules/update-notifier/index.js:35:17)
    at module.exports (/usr/local/lib/node_modules/bower/lib/node_modules/update-notifier/index.js:120:23)
    at Object.<anonymous> (/usr/local/lib/node_modules/bower/lib/bin/bower.js:140:20)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
Machintosh:user$sudo bower安装
bower ESUDO不能与sudo一起运行
其他错误详细信息:
由于bower是一个用户命令,因此不需要使用超级用户权限执行它。
如果您在不使用sudo的情况下使用bower时出现权限错误,请花几分钟时间进一步了解您的系统应该如何工作,并进行必要的修复。
http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814
但是,您可以使用--allow root选项使用sudo运行命令
Machintosh:文件夹用户$bower安装
/usr/local/lib/node_modules/bower/lib/node_modules/update notifier/node_modules/configstore/index.js:53
错误:EACCES:权限被拒绝,打开“/Users/user/.config/configstore/update notifier bower.json”
您没有访问此文件的权限。
错误(本机)
在Object.fs.openSync(fs.js:549:18)
在Object.fs.readFileSync(fs.js:397:15)
在Object.create.all.get(/usr/local/lib/node_modules/bower/lib/node_modules/update notifier/node_modules/configstore/index.js:34:26)
在Object.Configstore(/usr/local/lib/node_modules/bower/lib/node_modules/update notifier/node_modules/Configstore/index.js:27:44)
在新的UpdateNotifier(/usr/local/lib/node_modules/bower/lib/node_modules/update notifier/index.js:35:17)
在module.exports(/usr/local/lib/node_modules/bower/lib/node_modules/update notifier/index.js:120:23)
反对。(/usr/local/lib/node_modules/bower/lib/bin/bower.js:140:20)
在模块处编译(Module.js:409:26)
在Object.Module.\u extensions..js(Module.js:416:10)

我过去也遇到过同样的问题,原因是公司代理使用NTLM身份验证。Bower和NPM都提出了此代理的问题,我必须编写一个级联代理,以向客户端工具提供更标准的身份验证方法。

我不确定是否存在代理问题,您是否尝试以root用户身份执行这两个命令,如:

sudo su
npm install && bower install

当我尝试回答“su:unknown login:npm”时,首先您必须使用sudo su更改为root,然后单击enter,然后键入npm install&&bower install,或者您可以将sudo放在sudo npm install&&sudo bower install两个命令中谢谢。现在系统非常清楚地告诉我npm/bower无法通过代理。重新检查代理设置是否正确后。遗憾的是,我认为yeiniel可能是正确的。问题的根源是我的操作系统。我正在运行MAC OS 10.11.xxx,El Capitan。在此操作系统中,您不能更改/usr/bin。有一个解决方案,一个是更改该设置,不推荐。另一个下载node.js的最新版本。这会将路径更改为usr/local/bin(推荐)。我将发布一个更新,一旦我弄清楚了这个更新的过程。
sudo su
npm install && bower install