npm install error ENOTDIR

前端 未结 4 2145
误落风尘
误落风尘 2020-12-15 21:55

I am very new to Node.js and trying to install Flatiron using npm but it gives me an error.

sudo npm install flatiron -g

And I get -

4条回答
  •  时光取名叫无心
    2020-12-15 22:40

    Just solved the issue. Its because there's a file called tmp in the home directory.

    rm -rf ~/tmp
    sudo npm cache clear
    sudo npm install -g node
    

    Also... if you are trying to install npm then the same error and solution applies - delete ~/tmp

提交回复
热议问题