kailua
kailua copied to clipboard
Command "vsce package" is failing on OSX
I'm now building kailua VSC plugin for OSX.
After run "vsce package", it's failing on "vscode:prepublish" task.
If I run "(cd ..; cargo build --release)" manually, somehow "vsce package" succeed after that.
The error log is attached below.
Executing prepublish script 'npm run vscode:prepublish'...
Error: Command failed: /bin/sh -c npm run vscode:prepublish
npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/Cellar/node/5.0.0/bin/node" "/usr/local/bin/npm" "run" "vscode:prepublish"
npm ERR! node v5.0.0
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] vscode:prepublish: `tsc -p ./ && node ./out/src/tools/build-langsvr`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] vscode:prepublish script 'tsc -p ./ && node ./out/src/tools/build-langsvr'.
npm ERR! This is most likely a problem with the kailua package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc -p ./ && node ./out/src/tools/build-langsvr
npm ERR! You can get their info via:
npm ERR! npm owner ls kailua
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/jameskim/Develop/contribute/kailua/kailua_vsc/npm-debug.log
And how about add "How to build and install manually" section on README.md?
It will be like below,
# Cloning repository
git clone https://github.com/devcat-studio/kailua
cd kailua/kailua_vsc
# Install toolkits/dependencies.
npm install -g vsce
npm install -g typescript
npm install
# Package VSIX
(cd ..; cargo build --release) # without this, "vsce package" will be failed ;(
vsce package
# Install to Code
sudo rm -rf $HOME/.vscode/extensions/devCAT.kailua-* # remove previous installation
code --install-extension kailua-1.0.4.vsix
And optionally if you don't have rust.
# Install rustup (environment manager)
curl -sf https://static.rust-lang.org/rustup.sh | sudo sh
source $HOME/.cargo/env
# Change default env to nightly
rustup update nightly
rustup default nightly