`yo angular` gives error: npm ERR! code ENOENT npm ERR! errno 34 (yes I have cleaned the cache and set .npmignore)

后端 未结 5 1126
名媛妹妹
名媛妹妹 2020-12-08 10:50

I tried to run yo angular in a new project directory, but it gave me the ENOENT error somewhere along the way. Yes I have looked at this similar question, but i

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 11:27

    npm ERR! command "/home/ubuntu/local/bin/node"

    Are you installing in a user directory? I did and had ENOENT errors too.

    I had to mkdir some directories. If they're not there, try creating some of the directories in the debug.log, like lib/node_modules.

提交回复
热议问题