npm install locally

前端 未结 1 687
走了就别回头了
走了就别回头了 2021-01-30 14:42

In the past when I installed packages using npm(>=1.0) they would be installed locally, but not anymore.

My setup:

  • First I use nvm to install node.js

相关标签:
1条回答
  • 2021-01-30 15:04

    npm walks up the folder tree until it finds a node_modules or a package.json and uses that as the root. What does npm root print out?

    If you mkdir node_modules or create a package.json file, then it'll use the cwd.

    EDIT: I won't see updates you post here. For better results, just post everything in the github issue, and let's do the support over there.

    0 讨论(0)
提交回复
热议问题