Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found: Error: Can't resolve 'child_process' in 'C:\QFL-Latest\node_mo dules\clipboardy\node_modules\execa' #28

Closed
Jamunadevi-Vijayan opened this issue Jul 3, 2017 · 5 comments

Comments

@Jamunadevi-Vijayan
Copy link

Jamunadevi-Vijayan commented Jul 3, 2017

Module not found: Error: Can't resolve 'child_process' in 'C:\QFL-Latest\node_mo
dules\clipboardy\node_modules\execa'

@kevva
Copy link

kevva commented Jul 3, 2017

How are you running this? child_process is a built in module in Node.js.

@Jamunadevi-Vijayan
Copy link
Author

I am using angular cli project. I am giving "npm install clipboardy --save", then in my angular-cli.json inside scripts tag i am including clipboardy/index as
"scripts": [
"../node_modules/jquery/dist/jquery.min.js",
"../node_modules/tether/dist/js/tether.min.js",
"../node_modules/bootstrap/dist/js/bootstrap.min.js",
"../node_modules/lodash/lodash.js",
"../node_modules/clipboardy/index.js"

      ]

Then in my ts file i am giving, "const clipboardy = require('clipboardy');"

When i give "ng serve", the error comes

@sindresorhus
Copy link
Owner

Use Stack Overflow for support questions.

@kevva
Copy link

kevva commented Jul 3, 2017

@lorensr
Copy link
Sponsor

lorensr commented Aug 24, 2019

Use this module instead:

https://github.com/sindresorhus/copy-text-to-clipboard

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

No branches or pull requests

4 participants