Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vishalm's avatar

Laravel - npm ERR! notarget No matching version found for datatables@^2.0.6.

in package.json file of my Laravel project, I have updated datatables version to 2.0.6 as per defined on official site. But it's giving me error while installing npm. Below are the details -

package.json - "dependencies": { "datatables": "^2.0.6" }

Error msg -

npm ERR! code ETARGET npm ERR! notarget No matching version found for datatables@^2.0.6. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.

note - deleted node_modules & package-lock.json file before installing npm. Also tried with updated npm version.

0 likes
8 replies
Kortez12's avatar

Can you give me a package that you are trying to update?

vishalm's avatar

@Kortez12

current package - "datatables": "^1.10.18"

trying to update version "datatables": "^2.0.6"

Kortez12's avatar

I need link to this package, i saw name from your first message

vishalm's avatar

@Kortez12

"https:// datatables net/ download/ index"

I was not able to add direct link here. That's why I added some gaps in between link.

Kortez12's avatar

@vishalm I can see, that the latest version for this package is 1.10.21. So there are not 2.0.6 version

gych's avatar

Remove datatables npm package and install this updated package with npm install datatables.net

Please or to participate in this conversation.