Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run build failed #5

Open
vbarbarosh opened this issue Oct 29, 2014 · 11 comments
Open

npm run build failed #5

vbarbarosh opened this issue Oct 29, 2014 · 11 comments

Comments

@vbarbarosh
Copy link

vb@corei3:~/w/a/react-boilerplate-master$ npm run build

[email protected] build /home/www/a/react-boilerplate-master
jsxc src/ lib/

sh: 1: jsxc: not found

npm ERR! [email protected] build: jsxc src/ lib/
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is most likely a problem with the react-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! jsxc src/ lib/
npm ERR! You can get their info via:
npm ERR! npm owner ls react-boilerplate
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-4-amd64
npm ERR! command "node" "/usr/local/bin/npm" "run" "build"
npm ERR! cwd /home/www/a/react-boilerplate-master
npm ERR! node -v v0.11.14-pre
npm ERR! npm -v 1.4.15
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/www/a/react-boilerplate-master/npm-debug.log
npm ERR! not ok code 0

@feliperoberto
Copy link

it happened with me, too. But just because I have interrupted the npm install after an infinity install process, so the jsxc module was not installed. try manually install via "npm install jsxc".

I don't know why, but the "npm install react-boilerplate" is slow, So, if you wait, the things will get done.

make sure that the ./src and ./lib directory exists before run the build script. but for this type of error the message should be:

jsxc src/ lib/
ERROR: "src/" must exist
npm ERR! [email protected] build: jsxc src/ lib/
npm ERR! Exit status 1

@feliperoberto
Copy link

Based on my installation process and errors I could guess that you have tried to install via npm, right? Because when I re-tried but via git clone all errors before had not happened.

Try:
git clone https://github.c/petehunt/react-boilerplate
npm install
npm run build
npm start

@jasonadkison
Copy link

I have the same result as @vbarbarosh. Installing jsxc through npm fixes it.

@JavascriptMick
Copy link

sudo npm install jsxc worked for me also

@hawaiifi
Copy link

I had the same issue – jsxc is not installed. The first answer given by @feliperoberto fixes the problem. I manually installed jsxc by running the following from the command line:

npm install jsxc

So the full order would be:

git clone https://github.c/petehunt/react-boilerplate
npm install
npm install jsxc
npm run build
npm start

@chitopolo
Copy link

+1 @hawaiifi

@jsgoller1
Copy link

Had this same issue, sudo npm install jsxc worked for me as well

@SungminAditazz
Copy link

Had the same issue. I believe it was caused by having a problem of creating symbolic link on a share folder between Windows and Ubuntu Virtual Box. Works good after I do "npm install" in a ubuntu directory that is not on a shared disk.

@mertyesin
Copy link

mertyesin commented Nov 2, 2016

Just wait until "npm install" finished. It took some time that ı didn't understand. When installation is over , jsxc is working well.

@tarifrr
Copy link

tarifrr commented Jan 2, 2017

Try using the following command:

sudo npm run-script build

It worked for me

@imgeraldalinio
Copy link

imgeraldalinio commented May 3, 2018

I encountered these error!
ERROR in ./src/main.ts

npm ERR! Linux 4.13.0-39-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v6.14.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: ng build --prod
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'ng build --prod'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the the-core-serverless package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ng build --prod
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs the-core-serverless
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls the-core-serverless
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/aws/Desktop/xxx/xx-app/Start/npm-debug.log

SOLUTION:
great works!
npm install jsxc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests