slice-machine icon indicating copy to clipboard operation
slice-machine copied to clipboard

'npx @slicemachine/init' does not work

Open jose-uilton-ferreira opened this issue 2 years ago • 5 comments

in Next.js setup guide

when i run the following command:

npx @slicemachine/init

The following is returned

init: required argument missing.

i am using linux mint

jose-uilton-ferreira avatar Apr 22 '22 23:04 jose-uilton-ferreira

Hey @jose-uilton-ferreira.

The error

init: required argument missing.

seems weird as our Init script doesn't require arguments by default.

Could you give us more information about the different commands you tried before that ? Is the issue still happening ? Thanks 🙏

Heyrows avatar May 09 '22 13:05 Heyrows

@jose-uilton-ferreira @Heyrows Upgrade your NPM version to the latest and the problem it's solved.

jeanpierrecarvalho avatar May 13 '22 09:05 jeanpierrecarvalho

Had the same issue as @jose-uilton-ferreira and upgraded NPM to the latest version.

It worked!

But shouldn't something like "minimum NPM version required" documented somewhere?

roux1max avatar Jun 17 '22 07:06 roux1max

Had the same issue as @jose-uilton-ferreira and upgraded NPM to the latest version.

It worked!

But shouldn't something like "minimum NPM version required" documented somewhere?

Definitely, was using 14.x via nvm to fit another project's requirements and run into the issue

StitiFatah avatar Sep 14 '22 13:09 StitiFatah

Confirmed @slicemachine/init works on Node 14 and npm 6.

Proposed solution

Update the minimum supported version of Node from 12 to 14. Node 12 is no longer maintained. Node 14 is under maintenance until 2023-04-30 (see here).

See PR: #602

angeloashmore avatar Sep 22 '22 12:09 angeloashmore