Describe the bug
When I try to upgrade to 3.0.4 I get this error.
> [email protected] install .../node_modules/admin-lte
> npm run plugins
> [email protected] plugins .../node_modules/admin-lte
> node build/npm/Publish.js -v
.../node_modules/admin-lte/node_modules/fs-extra/lib/mkdirs/make-dir.js:86
} catch {
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (.../node_modules/admin-lte/node_modules/fs-extra/lib/mkdirs/index.js:3:44)
Environment (please complete the following information):
Which Node Version you use?
8.10.0
same problem here
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
> [email protected] install D:\projects\myProject\node_modules\admin-lte
> npm run plugins
> [email protected] plugins D:\projects\myProject\node_modules\admin-lte
> node build/npm/Publish.js -v
D:\projects\myProject\node_modules\fs-extra\lib\mkdirs\make-dir.js:86
} catch {
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\projects\myProject\node_modules\fs-extra\lib\mkdirs\index.js:3:44)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] plugins: `node build/npm/Publish.js -v`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] plugins script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I fixed it, by installing latest version node.
Node v12.16.1
npm v6.14.2
I added a note according to this requirement.
Note: To install it via NPM/Yarn, you need at least Node.js 10 or higher.
Most helpful comment
I fixed it, by installing latest version node.
Node v12.16.1
npm v6.14.2