问题描述
我遵循了指南,在没有管理员权限的情况下将节点安装到我的机器上。
I followed this guide to install node to my machine without having admin rights.
我将来自npm zip的node.exe(npm.cmd和node_modules)都放在C:\Users\rakibler\Node中。我将其添加到我的路径中。我运行 npm install -g bower
并获得
I put node.exe, (npm.cmd and node_modules ) both from the npm zip in C:\Users\rakibler\Node. I added that to my path. I ran npm install -g bower
and got
npm ERR! Error: EISDIR, open 'C:\Users\rakibler\Node\bower'
npm ERR! at Error (native)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Users\\rakibler\\Node\\\\node.exe" "C:\\Users\\rakibler\\Node\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower"
npm ERR! cwd C:\Users\rakibler
npm ERR! node -v v0.12.7
npm ERR! npm -v 1.4.9
npm ERR! path C:\Users\rakibler\Node\bower
npm ERR! code EISDIR
npm ERR! errno -4068
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\rakibler\npm-debug.log
npm ERR! not ok code 0
最后。似乎还有其他问题,因为它下载的所有内容都存储在 C:\Users\rakibler\Node
而不是 C:\ \用户\rakibler\节点\node_modules
。不知道这里出了什么问题。任何想法?
at the end. It also seems like something else is wrong, because everything it downloads goes to C:\Users\rakibler\Node
instead of C:\Users\rakibler\Node\node_modules
. Not sure what's going wrong here. Any idea?
推荐答案
我认为您需要使用
npm install -g npm整体安装npm。
i think you need to install the npm globlally using "npm install -g npm"
,然后在目录中使用它来安装bower。我希望这能解决您的问题
and then use it in directory to install bower . i hope this will solve your issue
这篇关于每当安装任何软件包时,npm err代码eisdir errno -4068的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!