<p>The import of Nami you are doing is not quite right. That's why you are getting that error.</p>
<p>I suggest you import <code>lucid-cardano</code> instead:</p>
<p><code>npm install lucid-cardano</code></p>
<p><a href="https://github.com/spacebudz/lucid" rel="nofollow noreferrer">Lucid</a> is a library which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js. It has been done by the creator of Nami Wallet so, if you want to check how it works, this will be helpful.</p>

CC BY-SA 4.0
2023-03-31T06:55:25.743Z
2023-03-31T06:55:25.743Z
Falcon Stakepool
<p>I successfully imported and used <a href="https://github.com/HarmonicPool/cardano-wallet-interface" rel="nofollow noreferrer">cardano-wallet-interface</a> by harmonic pool. However, I wonder if I can directly install and import <a href="https://github.com/Berry-Pool/nami-wallet" rel="nofollow noreferrer">Nami wallet</a>. I installed the package using &quot;npm install git+{url}.git&quot; and tried to &quot;import * as NamiWallet from 'nami-wallet'&quot; but I get error of index.js not found.</p>
<p>Main reason is that I want to check Nami further, I am getting wrong utxos when I use getUtxos() method from cardano-wallet-interface when Nami is the active wallet, however, same exact code works find when Eternl wallet is used.</p>

<nami-wallet>
importing nami-wallet package in nodejs
# importing nami-wallet package in nodejs

(Asked by: username_0 on 2022-05-23)

I successfully imported and used [cardano-wallet-interface](https://github.com/HarmonicPool/cardano-wallet-interface) by harmonic pool. However, I wonder if I can directly install and import [Nami wallet](https://github.com/Berry-Pool/nami-wallet). I installed the package using "npm install git+{url}.git" and tried to "import \* as NamiWallet from 'nami-wallet'" but I get error of index.js not found.

Main reason is that I want to check Nami further, I am getting wrong utxos when I use getUtxos() method from cardano-wallet-interface when Nami is the active wallet, however, same exact code works find when Eternl wallet is used.

**Tags:** nami-wallet

---

## 1 answers

### Answer by username_1 on 2023-03-31. Score: 0

The import of Nami you are doing is not quite right. That's why you are getting that error.

I suggest you import `lucid-cardano` instead:

`npm install lucid-cardano`

[Lucid](https://github.com/spacebudz/lucid) is a library which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js. It has been done by the creator of Nami Wallet so, if you want to check how it works, this will be helpful.


---

