elliott.david 2011-05-08 09:39 采纳率: 25%
浏览 493
已采纳

Npm 在哪里安装软件包?

Can someone tell me where can I find the Node.js modules, which I installed using npm?

转载于:https://stackoverflow.com/questions/5926672/where-does-npm-install-packages

  • 写回答

17条回答 默认 最新

  • hurriedly% 2011-05-08 09:47
    关注

    Global libraries

    You can run npm list -g to see where global libraries are installed.

    On Unix systems they are normally placed in /usr/local/lib/node or /usr/local/lib/node_modules when installed globally. If you set the NODE_PATH environment variable to this path, the modules can be found by node.

    Windows XP - %USERPROFILE%\AppData\npm\node_modules
    Windows 7, 8 and 10 - %USERPROFILE%\AppData\Roaming\npm\node_modules

    Non-global libraries

    Non-global libraries are installed the node_modules sub folder in the folder you are currently in.

    You can run npm list to see the installed non-global libraries for your current location.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(16条)

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!