thegreatdiscarder icon indicating copy to clipboard operation
thegreatdiscarder copied to clipboard

Doesn't build from source?

Open mpe opened this issue 6 years ago • 1 comments

I'm a total npm noob, but I couldn't get the build instructions to work.

$ npm run generate-key
npm ERR! Linux 4.x
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "generate-key"
npm ERR! node v6.11.4
npm ERR! npm  v3.5.2

npm ERR! missing script: generate-key
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/foomeep/src/thegreatdiscarder/npm-debug.log

I was able to fix that by copying the generate-key command from thegreatsuspender's package.json.

Then npm build also didn't work either.

To fix that I had to add "build": "grunt" to scripts and "grunt-cli": "^1.2.0" to devDependencies in packages.json.

Then it all seemed to work and I got an extension built ok.

mpe avatar Apr 03 '18 06:04 mpe

I fixed it in the PR #31

In my case adding the script targets was enough. I didn't need to add grunt-cli.

Pictor13 avatar Aug 23 '18 21:08 Pictor13