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

Bug report: npx missing on master branch #383

Closed
qistoph opened this issue Oct 11, 2018 · 4 comments
Closed

Bug report: npx missing on master branch #383

qistoph opened this issue Oct 11, 2018 · 4 comments

Comments

@qistoph
Copy link
Contributor

qistoph commented Oct 11, 2018

Summary

In the package.json, the postinstall uses npx which is not installed as a dependency.

Related to #360

Example

$ npm install

> cyberchef@8.8.2 postinstall /home/chris/Projects/CyberChef
> [ -f node_modules/crypto-api/src/crypto-api.mjs ] || npx j2m node_modules/crypto-api/src/crypto-api.js

sh: 1: npx: not found

(PR with fix is coming)

@d98762625
Copy link
Member

@qistoph What version of node were you using to get this error? npx is documented as included with npm 5.2+

@qistoph
Copy link
Contributor Author

qistoph commented Oct 12, 2018

I'm using 3.5.2 apparently.

@d98762625
Copy link
Member

3.5.2 came out in late 2015. Could you see if upgrading your npm solves this problem?

upgrade npm to the latest stable version: npm install -g npm@latest

Or upgrade node to the latest version, which should come with the latest stable version of npm (I recommend this option - try out nvm to easily manage your node versions)

@qistoph
Copy link
Contributor Author

qistoph commented Oct 15, 2018

That did indeed fix it.

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

2 participants