npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Nuwanst\package.json'

前端 未结 15 910
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 23:19

I just want to install socket.io to my project which is located on 3.chat folder. But when I run following command it shows following Warnings.And its not created a node_mod

15条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 00:20

    finally, I got a solution if you are getting:-

    **npm WARN tar ENOENT: no such file or directory,.......**
    

    then it is no issue of npm or its version it is os permission issue to resolve this you need to use below command:-

    sudo chown -R $USER:$USER *
    

    additional

    sudo chmod -R 777 *
    

    then run:-

    sudo npm i 
    

提交回复
热议问题