Node.js 安装聚合物cli时出现问题
我已经尝试了几个小时来安装它,我开始认为这可能是节点模块的问题? 我尝试过更新节点,重新安装节点,更新bower,使用不同的外壳和wifi网络,在本地和全球安装它 还有其他建议吗 命令:npm安装-g polymer cliNode.js 安装聚合物cli时出现问题,node.js,npm,polymer,npm-install,polymer-cli,Node.js,Npm,Polymer,Npm Install,Polymer Cli,我已经尝试了几个小时来安装它,我开始认为这可能是节点模块的问题? 我尝试过更新节点,重新安装节点,更新bower,使用不同的外壳和wifi网络,在本地和全球安装它 还有其他建议吗 命令:npm安装-g polymer cli npm ERR! enoent ENOENT: no such file or directory, scandir 'C:\Users\mb\AppData\Roaming\npm-cache\_git-remotes\git-github-com-polymerelem
npm ERR! enoent ENOENT: no such file or directory, scandir 'C:\Users\mb\AppData\Roaming\npm-cache\_git-remotes\git-github-com-polymerelements-test-fixture-git-8142662e\config'
npm ERR! enoent ENOENT: no such file or directory, scandir 'C:\Users\mb\AppData\Roaming\npm-cache\_git-remotes\git-github-com-polymerelements-test-fixture-git-8142662e\config'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm verb exit [ -4058, true ]
如果您在Windows PC上,请确保以管理员身份运行控制台(终端)。如果使用Mac OS或Linux,则需要使用sudo运行npm命令。如果您使用的是Windows PC,请确保以管理员身份运行控制台(终端)。如果使用Mac OS或Linux,您需要使用sudo运行npm命令。FYI,如果您以非root用户的身份安装了npm,则不需要以sudo的身份运行npm。问题中显示的错误似乎与权限无关。在Windows上,您必须以“管理员”身份运行终端,npm才能全局安装项目“-g”flag.FYI,如果您以非root用户身份安装,则无需以sudo身份运行
npm
。问题中显示的错误似乎与权限无关。在Windows上,您必须以“管理员”身份运行终端,npm才能全局安装项目“-g”标志。