I am working on a ReactJS/Redux web app that fetches a client youtube videos from his channel am using npm package called youtube-api.
When I did manually installed npm i --save youtube-api
give me messages like module not found in googleapis
and js-beautify
but fixed that problem.
I know it's a duplicate question from Snubber.
Issue:
Error in ./~/google-auth-library/lib/auth/googleauth.js
Module not found: 'child_process' in /Users/brandonpowell/Desktop/main-kdrusha-website/node_modules/google-auth-library/lib/auth
@ ./~/google-auth-library/lib/auth/googleauth.js 21:11-35
Error in ./~/youtube-api/~/google-auth-library/lib/auth/googleauth.js
Module not found: 'child_process' in /Users/brandonpowell/Desktop/main-kdrusha-website/node_modules/youtube-api/node_modules/google-auth-library/lib/auth
@ ./~/youtube-api/~/google-auth-library/lib/auth/googleauth.js 21:11-35
package.json
{
"name": "kdrusha-website-v2",
"version": "0.1.0",
"private": true,
"dependencies": {
"child-process": "^1.0.2",
"googleapis": "^19.0.0",
"js-beautify": "^1.6.12",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-redux": "^5.0.4",
"redux": "^3.6.0",
"redux-logger": "^3.0.1",
"swig": "^1.4.2",
"youtube-api": "^2.0.8"
},
"devDependencies": {
"chai": "^3.5.0",
"enzyme": "^2.8.2",
"jsdom": "^9.12.0",
"mocha": "^3.2.0",
"react-addons-test-utils": "^15.5.1",
"react-scripts": "0.9.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test mocha --require ./src/test/setup.js --reporter spec --slow --recursive ./src/components/**/*spec.js --env=jsdom",
"watch": "npm run test -- --watch",
"eject": "react-scripts eject"
}
}
via Brandon Powell
No comments:
Post a Comment