sindresorhus / np

A better `npm publish`
MIT License
7.56k stars 299 forks source link

SyntaxError: Unexpected token '&&=' #700

Closed doctor-zhaohai123123 closed 1 year ago

doctor-zhaohai123123 commented 1 year ago

Description

file:///Users/xxxxxx/.npm/_npx/64925/lib/node_modules/np/node_modules/meow/source/index.js:34 description &&= help ? \n ${description}\n : \n${description}; ^^^

SyntaxError: Unexpected token '&&=' at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)

Steps to reproduce

1. 2. 3.

Expected behavior

Environment

np - 8.0.2 Node.js - 14.17.6 npm - 6.14.15 Git - x.x.x OS - XXX x.x.x

sindresorhus commented 1 year ago

You must have Node.js 16 or later.