JK0N / tensorflow-image-recognition-chrome-extension

Chrome browser extension for using TensorFlow image recognition on web pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm build problem

Isetnt2 opened this issue · comments

Hi!

On windows when running npm run build it will display an error stating that cp is not an internal or external command, it can be fixed by replacing cp with copy in the package.json however it still outputs this error.

The syntax of the command is incorrect.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tensorflow-image-recognition-chrome-extension@0.1.0 copy: "copy src/content.js dist/src/ && copy src/imagenet_classes.js dist/src/"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tensorflow-image-recognition-chrome-extension@0.1.0 copy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\07088\AppData\Roaming\npm-cache\_logs\2018-09-25T10_31_01_339Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tensorflow-image-recognition-chrome-extension@0.1.0 build: "parcel build src/background.js -d dist/src/ -o background && npm run copy"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tensorflow-image-recognition-chrome-extension@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\07088\AppData\Roaming\npm-cache\_logs\2018-09-25T10_31_01_432Z-debug.log

Closed! Fixed it by installing cpx and then using cpx instead of copy or cp.