---
title: "Discussion on \"3 ways to add npm package in Chrome extension.\" | Hashnode"
description: "Discussion on \"3 ways to add npm package in Chrome extension.\". When you try to add npm packages in Chrome extension.\nChrome extension show error\nImport path must start with ./ or /\nYou may think then how does node.js find packages' path ??\nWhen you run npm command. NPM replace package name with real path.\nYou ne..."
url: "https://hashnode.com/posts/3-ways-to-add-npm-package-in-chrome-extension/6390e26d1fd727eed63dad1f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [3 ways to add npm package in Chrome extension.](https://anilkumarum.hashnode.dev/3-ways-to-add-npm-package-in-chrome-extension?utm_source=hashnode&utm_medium=feed)

When you try to add npm packages in Chrome extension. Chrome extension show error Import path must start with ./ or / You may think then how does node.js find packages' path ?? When you run npm command. NPM replace package name with real path. You ne...

Dec 7, 2022 · 2 min read · anilkumarum.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#chrome-extension](https://hashnode.com/tag/chrome-extension)
-   [#npm](https://hashnode.com/tag/npm)

## Written by

[Anil kumar](https://hashnode.com/@anilkumarum)

@anilkumarum

  
[View profile](https://hashnode.com/@anilkumarum)

javascript developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
