Problem: XCode must be setup before blockstack-todos works in macOS

Per instructions for the bounty I am walking through the steps on - https://blockstack.org/tutorials/todo-list using a MacBook Pro running High Sierra. These steps were performed in Safari and then again using Chrome.

I had to use the command: npm install -g yarn to install yarn which now shows a version of 1.6.0 will this version of yarn work properly or does it need to be version 0.24.5?

I’ve tried running this command: npm install [email protected] however it says its deprecated.

I tried running: npm run start and received an error. The above image includes the log

I tried updating Yarn and running npm install -g n. Still received an error. I will continue to research for solution. I’m not sure if its an issue with High Sierra or user error. Any feedback would be appreciated.

I have uninstalled Yarn using: npm uninstall -g yarn and reinstalled then - npm run start

Log file output:
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘run’, ‘start’ ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle [email protected]~prestart: [email protected]
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing
7 info lifecycle [email protected]~start: [email protected]
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/niquedevereaux/Documents/GitHub/blockstack-todos/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
10 verbose lifecycle [email protected]~start: CWD: /Users/niquedevereaux/Documents/GitHub/blockstack-todos
11 silly lifecycle [email protected]~start: Args: [ ‘-c’, ‘node build/dev-server.js’ ]
12 silly lifecycle bs-to[email protected]~start: Returned: code: 1 signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: node build/dev-server.js
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:891:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd /Users/niquedevereaux/Documents/GitHub/blockstack-todos
17 error Darwin 17.5.0
18 error argv “/usr/local/bin/node” “/usr/local/bin/npm” “run” "start"
19 error node v6.11.2
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error [email protected] start: node build/dev-server.js
22 error Exit status 1
23 error Failed at the [email protected] start script ‘node build/dev-server.js’.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the bs-todo package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error node build/dev-server.js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs bs-todo
23 error Or if that isn’t available, you can get their info via:
23 error npm owner ls bs-todo
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

The answer turned out to be I needed to properly accept terms and conditions of Xcode, install Xcode command line, and then install Yarn. I used MacPorts since I am running High Sierra.

After the above steps were completed, I was able to follow the steps outlined in this tutorial as posted and run the server.

I hope this helps others.

1 Like

Thanks for reporting this (and the solution!) @IBLoud – I’m sure this is something the community will find useful.

1 Like