Installing cloudinary-video-player fails with npm install
After issuing the following:
npm install lodash cloudinary-core cloudinary-video-player
the video player fails to install and shows the following message:
2212 verbose stack Error: cloudinary-video-player@1.0.1 postinstall: `cp env.example.js env.js`
2212 verbose stack Exit status 1
2212 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)
2212 verbose stack at EventEmitter.emit (events.js:182:13)
2212 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
2212 verbose stack at ChildProcess.emit (events.js:182:13)
2212 verbose stack at maybeClose (internal/child_process.js:957:16)
2212 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:246:5)
2213 verbose pkgid cloudinary-video-player@1.0.1
2214 verbose cwd C:\repos\aap
2215 verbose Windows_NT 10.0.17134
2216 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "lodash" "cloudinary-core" "cloudinary-video-player"
2217 verbose node v10.1.0
2218 verbose npm v5.6.0
2219 error code ELIFECYCLE
2220 error errno 1
2221 error cloudinary-video-player@1.0.1 postinstall: `cp env.example.js env.js`
-
Hi Erik,
Can you tell me what environment and version you're using to help narrow this down? Thanks!0 -
Hi Marissa,
The problem turned out to be that I am on Windows and the cloudinary-video-player post install script uses `cp env.example.js env.js` instead of `copy env.example.js env.js`.
To fix, I just ran the npm install from Git Bash which can run the 'cp' command.
Sorry that I was a bit vague.
Erik
0 -
Hi Erik,
I'm glad to hear you were able to get it figured out!
Thank you for sharing the fix as well for others to see :)
Cheers0
Post is closed for comments.
Comments
3 comments