[AC-5497] Arrow Builder - New Project (blank) on NodeJS 8.1.0 throws error when run
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Done |
| Resolution Date | 2018-01-29T16:02:17.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Arrow Builder |
| Labels | arrow |
| Reporter | Joseph Sachs |
| Assignee | Shak Hossain |
| Created | 2018-01-07T14:28:14.000+0000 |
| Updated | 2018-01-29T16:02:17.000+0000 |
Description
Running a blank, new Arrow Builder Project throws an error when Running (locally):
Steps to reproduce:
1- Create a new Arrow Build Project
2- Run it
Result:
Appcelerator Command-Line Interface, version 7.0.1
Copyright (c) 2014-2018, Appcelerator, Inc. All Rights Reserved.
Fetching connector/appc.composite@2.0.0
Fetching connector/appc.arrowdb@1.1.11
Installed 2 modules
*2018-01-07T14:21:38.309Z | ERROR | spawn /bin/sh ENOENT
2018-01-07T14:21:38.321Z | ERROR | exited with non-zero exit code*
[~underlabs] Can you attach or send me the output of "appc run -l trace" please?
sure,
Appcelerator Command-Line Interface, version 7.0.1 Copyright (c) 2014-2018, Appcelerator, Inc. All Rights Reserved. 2018-01-08T20:25:10.700Z | TRACE | set environment to {"registry":"https://registry.platform.axway.com","baseurl":"https://platform.axway.com"} 2018-01-08T20:25:10.701Z | TRACE | checking credentials for existing session 2018-01-08T20:25:10.834Z | TRACE | Attempting to load session info from config file 2018-01-08T20:25:10.837Z | TRACE | check if session is invalidated 2018-01-08T20:25:11.486Z | TRACE | refresh session expiry to: 1516047960084 2018-01-08T20:25:11.487Z | TRACE | session expiry 1516047960084 false 2018-01-08T20:25:11.487Z | TRACE | Arrow Cloud config file: /Users/user/.acs 2018-01-08T20:25:11.489Z | TRACE | found Arrow Cloud login { mid: 'd7137b1892b36aef64e067777b68698f78e84c37', publishPort: 443, publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', username: '@.com', cookie: [ 'connect.sid=s%3A2BhZxxxxxSPxxxxxxx9GIdBF%2BPZ7GjhU; Path=/; Expires=Mon, 15 Jan 2018 17:12:12 GMT; HttpOnly' ], defaultEP: { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com 2018-01-08T20:25:11.490Z | TRACE | Arrow Cloud cookie expiry [ 1516036332000 ] 2018-01-08T20:25:11.490Z | TRACE | session already loaded in opts.session 2018-01-08T20:25:11.491Z | TRACE | getCredentials() session: { "ipaddress": "10.0.1.7", "username": "xx@xx.com", "password": "<OMITTED>", "session": "<OMITTED>", "nonce": "<OMITTED>", "environment": { "name": "production", "isProduction": true, "acsBaseUrl": "https://api.cloud.appcelerator.com", "acsAuthBaseUrl": "https://secure-identity.cloud.appcelerator.com", "nodeACSEndpoint": "https://admin.cloudapp-enterprise.appcelerator.com" }, "token": "<OMITTED>", "fingerprint": "d7xxxxxxxxx7b686xx4c37", "fingerprint_description": "Mac OSX Serial Number: xxx", "org_id": 180007, "expiry": 1516047960084 } 2018-01-08T20:25:11.491Z | TRACE | loading plugins for command "run" 2018-01-08T20:25:11.501Z | TRACE | run search paths: [ "/Users/user/.appcelerator/install/7.0.1/package", "/Users/user/.appcelerator/install/7.0.1/package/node_modules", "/Users/user/Documents/Appcelerator_Studio_Workspace/EyeBinan/models", "/Users/user/Documents/Appcelerator_Studio_Workspace/EyeBinan/blocks", "/Users/user/Documents/Appcelerator_Studio_Workspace/EyeBinan/node_modules", "/Users/user/Documents/Appcelerator_Studio_Workspace/node_modules", "/Users/user/Documents/node_modules", "/Users/user/node_modules", "/Users/node_modules", "/node_modules", "/Users/user/.appcelerator/.npm/lib/node_modules" ] 2018-01-08T20:25:11.501Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/user/.appcelerator/install/7.0.1/package/appc.js 2018-01-08T20:25:11.554Z | DEBUG | [PLUGIN-LOAD] 48ms /Users/user/.appcelerator/install/7.0.1/package/node_modules/appc-cli-titanium/appc.js 2018-01-08T20:25:11.554Z | DEBUG | run plugin: /Users/user/.appcelerator/install/7.0.1/package/node_modules/appc-cli-titanium 2018-01-08T20:25:11.558Z | DEBUG | [PLUGIN-LOAD] 1ms /Users/user/.appcelerator/install/7.0.1/package/node_modules/arrow/appc.js 2018-01-08T20:25:11.563Z | DEBUG | run plugin: /Users/user/.appcelerator/install/7.0.1/package/node_modules/arrow 2018-01-08T20:25:11.601Z | TRACE | plugin "titanium" failed its "when" function check, skipping... 2018-01-08T20:25:11.602Z | TRACE | loading plugin "arrow" for command "run" CLI options via function 2018-01-08T20:25:11.602Z | TRACE | Duplicate option "port" for command "run", removing... 2018-01-08T20:25:11.605Z | TRACE | executing command "run" with the following plugins: ["arrow"] 2018-01-08T20:25:11.607Z | TRACE | session already loaded in opts.session 2018-01-08T20:25:11.614Z | TRACE | generated npm install token 6b3xxxxxxxxxxxxxxx95f13f7215ebb5f7327 Fetching connector/appc.composite@2.0.0 Fetching connector/appc.arrowdb@1.1.11 Installed 2 modules 2018-01-08T20:25:17.936Z | ERROR | spawn /bin/sh ENOENT 2018-01-08T20:25:17.948Z | ERROR | Error: exited with non-zero exit code at ChildProcess.<anonymous> (/Users/user/.appcelerator/install/7.0.1/package/node_modules/arrow/lib/plugin/run.js:121:20) at emitTwo (events.js:125:13) at ChildProcess.emit (events.js:213:7) at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)The issue "ENOENT" is often related to node js. Can you update your node js. Also, Try a logout and login in the platform through terminal. Thanks.
Any specific node version? The documentation mention > 8.0 (n.b. I'm using 8.1.0) I should note, that previous node projects are running fine, it's when creating new API Builder (node) projects.
Try updating to the latest one. I believe it's 8.9.x.
I've updated to node 8.9.4, and reran the blank project locally:
Issue was resolved after installing:AND adding it to *dependencies* of the blank projectin package.json