Unable to find the npm root, something went wrong. Unable to upgrade the yoman generator

Error 

Unable to find the npm root, something went wrong.
Try to execute npm -g root --silent on your command-line


Possible Soltions

  1. Get the root folder using command npm root -g  "C:\Users\UserName\AppData\Roaming\npm\node_modules"
  2. Go to the npm folder at root path "C:\Users\UserName\AppData\Roaming\npm\node_modules\npm"
  3. Opent the npmrc file in notepad and remove the prefix
  4. save the file and try to update yoman

Comments

  1. i am getting path like this: /home/ubuntu/.npm-packages/lib/node_modules
    how to open this? 'home' folder is not there

    ReplyDelete

Post a Comment

Popular posts from this blog

SharePoint Recurrence Event XML Format and Standard

Sort By Field REST API Result In SharePoint