Build error SAP Cloud Sample Spaceflight Node tutorialeslint: error Parsing error: The keyword 'const' is reservedNPM modules won't install globally without sudoerror in node js when trying to install a module in windowsNodeJS OSX error building node-sassnode inspector installation errornode-sass@4.5.1 postinstall: `node scripts/build.js`Node-gyp. MSBuild.exe` failed with exit code: 1Dockerize framework tests “Failed to exec”Npm rebuild node-sass failsLibrary postinstall script fails on WindowsNpm/Yarn Not installing properly and giving issues
Generic function to loop over inputs and execute a command in bash?
Why does adding parentheses prevent an error?
How dangerous are set-size assumptions?
Short story with brother-sister conjoined twins as protagonists?
Why does the A-4 Skyhawk sit nose-up when on ground?
Does the Paladin's Aura of Protection affect only either her or ONE ally in range?
Why is Madam Hooch not a professor?
Do equal angles necessarily mean a polygon is regular?
Should I include salary information on my CV?
Layout of complex table
Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?
Symbolic equivalent of chmod 400
Why do some games show lights shine through walls?
Is my Rep in Stack-Exchange Form?
Declining an offer to present a poster instead of a paper
What is this opening trap called, and how should I play afterwards? How can I refute the gambit, and play if I accept it?
Could Sauron have read Tom Bombadil's mind if Tom had held the Palantir?
Is there a short way to compare many values mutually at same time without using multiple 'and's?
STM Microcontroller burns every time
How many satellites can stay in a Lagrange point?
"It will become the talk of Paris" - translation into French
Are there any vegetarian astronauts?
Should my manager be aware of private LinkedIn approaches I receive? How to politely have this happen?
How to append a matrix element by element?
Build error SAP Cloud Sample Spaceflight Node tutorial
eslint: error Parsing error: The keyword 'const' is reservedNPM modules won't install globally without sudoerror in node js when trying to install a module in windowsNodeJS OSX error building node-sassnode inspector installation errornode-sass@4.5.1 postinstall: `node scripts/build.js`Node-gyp. MSBuild.exe` failed with exit code: 1Dockerize framework tests “Failed to exec”Npm rebuild node-sass failsLibrary postinstall script fails on WindowsNpm/Yarn Not installing properly and giving issues
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am following the SAP Cloud Sample Spaceflight Node-tutorial (https://github.com/SAP/cloud-sample-spaceflight-node/blob/master/-exercises-/exercise04/README.md) in order to deploy a local Node.js-project to SAP Cloud Platform.
When I try to build the application in Cloud Platform, I get the following error:
Error: Command failed: npm install && npm run build
...
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deploy@ postinstall: `node .build.js`
npm ERR! Exit status 1
npm ERR! Failed at the deploy@ postinstall script.
The code in my .build.js file looks like this:
const fs = require('fs');
const childproc = require('child_process');
if (fs.existsSync('../package.json'))
// true at build-time, false at CF staging time
childproc.execSync('npm install && npm run build',
cwd: '..',
stdio: 'inherit'
);
This code generates errors saying that
the keyword
const
is reserved
When I replace const
by var
or let
, however, the problem remains.
I also tried this solution (and some related answers), but these did not solve my question.
Does someone know how to fix this problem?
Thanks in advance!
node.js sap-web-ide sap-cloud-platform
add a comment |
I am following the SAP Cloud Sample Spaceflight Node-tutorial (https://github.com/SAP/cloud-sample-spaceflight-node/blob/master/-exercises-/exercise04/README.md) in order to deploy a local Node.js-project to SAP Cloud Platform.
When I try to build the application in Cloud Platform, I get the following error:
Error: Command failed: npm install && npm run build
...
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deploy@ postinstall: `node .build.js`
npm ERR! Exit status 1
npm ERR! Failed at the deploy@ postinstall script.
The code in my .build.js file looks like this:
const fs = require('fs');
const childproc = require('child_process');
if (fs.existsSync('../package.json'))
// true at build-time, false at CF staging time
childproc.execSync('npm install && npm run build',
cwd: '..',
stdio: 'inherit'
);
This code generates errors saying that
the keyword
const
is reserved
When I replace const
by var
or let
, however, the problem remains.
I also tried this solution (and some related answers), but these did not solve my question.
Does someone know how to fix this problem?
Thanks in advance!
node.js sap-web-ide sap-cloud-platform
Possible duplicate of eslint: error Parsing error: The keyword 'const' is reserved
– A Jar of Clay
Mar 25 at 11:04
add a comment |
I am following the SAP Cloud Sample Spaceflight Node-tutorial (https://github.com/SAP/cloud-sample-spaceflight-node/blob/master/-exercises-/exercise04/README.md) in order to deploy a local Node.js-project to SAP Cloud Platform.
When I try to build the application in Cloud Platform, I get the following error:
Error: Command failed: npm install && npm run build
...
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deploy@ postinstall: `node .build.js`
npm ERR! Exit status 1
npm ERR! Failed at the deploy@ postinstall script.
The code in my .build.js file looks like this:
const fs = require('fs');
const childproc = require('child_process');
if (fs.existsSync('../package.json'))
// true at build-time, false at CF staging time
childproc.execSync('npm install && npm run build',
cwd: '..',
stdio: 'inherit'
);
This code generates errors saying that
the keyword
const
is reserved
When I replace const
by var
or let
, however, the problem remains.
I also tried this solution (and some related answers), but these did not solve my question.
Does someone know how to fix this problem?
Thanks in advance!
node.js sap-web-ide sap-cloud-platform
I am following the SAP Cloud Sample Spaceflight Node-tutorial (https://github.com/SAP/cloud-sample-spaceflight-node/blob/master/-exercises-/exercise04/README.md) in order to deploy a local Node.js-project to SAP Cloud Platform.
When I try to build the application in Cloud Platform, I get the following error:
Error: Command failed: npm install && npm run build
...
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deploy@ postinstall: `node .build.js`
npm ERR! Exit status 1
npm ERR! Failed at the deploy@ postinstall script.
The code in my .build.js file looks like this:
const fs = require('fs');
const childproc = require('child_process');
if (fs.existsSync('../package.json'))
// true at build-time, false at CF staging time
childproc.execSync('npm install && npm run build',
cwd: '..',
stdio: 'inherit'
);
This code generates errors saying that
the keyword
const
is reserved
When I replace const
by var
or let
, however, the problem remains.
I also tried this solution (and some related answers), but these did not solve my question.
Does someone know how to fix this problem?
Thanks in advance!
node.js sap-web-ide sap-cloud-platform
node.js sap-web-ide sap-cloud-platform
edited Mar 27 at 7:39
jordihemelaer
asked Mar 25 at 10:55
jordihemelaerjordihemelaer
11 bronze badge
11 bronze badge
Possible duplicate of eslint: error Parsing error: The keyword 'const' is reserved
– A Jar of Clay
Mar 25 at 11:04
add a comment |
Possible duplicate of eslint: error Parsing error: The keyword 'const' is reserved
– A Jar of Clay
Mar 25 at 11:04
Possible duplicate of eslint: error Parsing error: The keyword 'const' is reserved
– A Jar of Clay
Mar 25 at 11:04
Possible duplicate of eslint: error Parsing error: The keyword 'const' is reserved
– A Jar of Clay
Mar 25 at 11:04
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336211%2fbuild-error-sap-cloud-sample-spaceflight-node-tutorial%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336211%2fbuild-error-sap-cloud-sample-spaceflight-node-tutorial%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of eslint: error Parsing error: The keyword 'const' is reserved
– A Jar of Clay
Mar 25 at 11:04