ng2-search-filter icon indicating copy to clipboard operation
ng2-search-filter copied to clipboard

cant find module

Open tharrington opened this issue 8 years ago • 15 comments
trafficstars

Just installed from npm and I am getting:

Error: Cannot find module "ng2-search-filter"

the directory in node_modules just has LICENSE, package.json, and README.md

tharrington avatar May 22 '17 20:05 tharrington

Looking towards it. Update: Issue has been resolved , you may check and let me know.

solodynamo avatar May 23 '17 03:05 solodynamo

Still getting errors from npm installation. Can't post-install typings. Failed at the [email protected] postinstall script 'typings install'.

ghost avatar May 24 '17 15:05 ghost

You have to add typings to the requirements list.

ghost avatar May 24 '17 15:05 ghost

typings are already in package.json , should not be the case .

solodynamo avatar May 24 '17 15:05 solodynamo

I am getting the same error:

npm ERR! syscall spawn
npm ERR! [email protected] postinstall: `typings install`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

amandeepmittal avatar May 26 '17 08:05 amandeepmittal

Re-published the module with solution to this issue, please check it and close the issue if solved.

solodynamo avatar May 26 '17 12:05 solodynamo

Hi there i have got the same error with installing the package. screen shot 2017-08-23 at 09 46 08

karteek-dev avatar Aug 23 '17 07:08 karteek-dev

Error in postinstall script on running yarn install on cloned project having package version 0.3.1

error /../node_modules/ng2-search-filter: Command failed.
Exit code: 127
Command: sh
Arguments: -c typings install
Directory: /../node_modules/ng2-search-filter
Output:
sh: typings: command not found

keshavkaul avatar Aug 23 '17 14:08 keshavkaul

Guys , It seems to work for me . Maybe you don't have typings installed as a global dep so try npm install typings --global

solodynamo avatar Aug 23 '17 15:08 solodynamo

@solodynamo I can see typings package is deprecated. Is typings necessary? Or rather why is typings being used? I'm new to typescript land, so sorry if the question is simple. Thanks!

keshavkaul avatar Aug 23 '17 15:08 keshavkaul

@keshavkaul Node module resolution only resolves dependencies with typings field in package.json. This works for a small subset of people who happen to stick to a TypeScript-only ecosystem (or packages that included .d.ts files). If you want to use anything without a .d.ts file, you'll need to use Typings. This came from this thread https://github.com/typings/typings/issues/142

solodynamo avatar Aug 23 '17 17:08 solodynamo

Just installed from npm and I am getting:

Error: Cannot find module "ng2-search-filter"

the directory in node_modules just has LICENSE, package.json, and README.md

Did you get a solution for this?

kabaliisa avatar May 22 '19 13:05 kabaliisa

Hi @kabaliisa, Just installed the package's latest version and it has the required files i.e mainly dist. PFA

npm install ng2-search-filter Screen Shot 2019-05-22 at 7 12 33 PM

UPDATE: Install v0.5.1 it should solve the issue.

solodynamo avatar May 22 '19 13:05 solodynamo

@solodynamo i just installed the latest package for my angular project but i keep getting this error image I unistalled and installed severally. Its still giving me the same error

beardedprince avatar Jan 01 '20 22:01 beardedprince

I got error on installing and it stopped to continue on [email protected]

What can i do?

MELAS007 avatar May 26 '21 09:05 MELAS007