Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

cant find module #5

Open
tharrington opened this issue May 22, 2017 · 15 comments
Open

cant find module #5

tharrington opened this issue May 22, 2017 · 15 comments

Comments

@tharrington
Copy link

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

@solodynamo
Copy link
Owner

solodynamo commented May 23, 2017

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

@ghost
Copy link

ghost commented May 24, 2017

Still getting errors from npm installation. Can't post-install typings.
Failed at the ng2-search-filter@0.2.6 postinstall script 'typings install'.

@ghost
Copy link

ghost commented May 24, 2017

You have to add typings to the requirements list.

@solodynamo
Copy link
Owner

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

@amandeepmittal
Copy link

I am getting the same error:

npm ERR! syscall spawn
npm ERR! ng2-search-filter@0.2.6 postinstall: `typings install`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the ng2-search-filter@0.2.6 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

solodynamo added a commit that referenced this issue May 26, 2017
@solodynamo
Copy link
Owner

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

@fairlo
Copy link

fairlo commented Aug 23, 2017

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

@keshavkaul
Copy link

keshavkaul commented Aug 23, 2017

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

@solodynamo
Copy link
Owner

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

@keshavkaul
Copy link

@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!

@solodynamo
Copy link
Owner

@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 typings/typings#142

@kabaliisa
Copy link

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?

@solodynamo solodynamo reopened this May 22, 2019
@solodynamo
Copy link
Owner

solodynamo commented May 22, 2019

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.

@beardedprince
Copy link

@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

@MELAS007
Copy link

I got error on installing and it stopped to continue on ionicons@5.5.0

What can i do?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants