-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I have issues with your LinkedIn Learning Lab "Create a base box, part 1" which so far taught me quite a few things.
The proposed change by Wolfang fixes the issue.
If I modify install-ngx.sh to
sudo npm install -g generator-ngx-rocket@6.2.1 the error goes away and I can access the starter app.
Without specifying a version in install-ngx.sh generator-ngx-version is installed at version 7.1.0 at the time of writing.
This the output of the initial vagrant up run around the error:
default: + generator-ngx-rocket@7.1.0
default: added 519 packages in 21.48s
default: __ __
default: _ _ __ \ ./ / ____ ____ ____ _ _ ____ ___
default: | ' / ` |> < |--< [] | |-: |=== |
default: |||_, //°_\ ENTERPRISE APP STARTER -~*=>
default: |___/ v7.1.0
default: (node:13166) UnhandledPromiseRejectionWarning: /usr/lib/node_modules/generator-ngx-rocket/generators/app/index.js:26
default: } catch {
default: ^
default:
default: SyntaxError: Unexpected token {
default: at new Script (vm.js:51:7)
default: at createScript (vm.js:136:10)
default: at Object.runInThisContext (vm.js:197:10)
default: at Module._compile (internal/modules/cjs/loader.js:618:28)
default: at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
default: at Module.load (internal/modules/cjs/loader.js:566:32)
default: at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
default: at Function.Module._load (internal/modules/cjs/loader.js:498:3)
default: at Module.require (internal/modules/cjs/loader.js:598:17)
default: at require (internal/modules/cjs/helpers.js:11:18)
default: (node:13166) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
default: (node:13166) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections
that are not handled will terminate the Node.js process with a non-zero exit code.
default: rm:
default: cannot remove 'package.json'
default: : No such file or directory