react-boilerplate icon indicating copy to clipboard operation
react-boilerplate copied to clipboard

npm run build failed

Open vbarbarosh opened this issue 10 years ago • 11 comments

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

vbarbarosh avatar Oct 29 '14 15:10 vbarbarosh

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 avatar Nov 19 '14 01:11 feliperoberto

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

feliperoberto avatar Nov 19 '14 02:11 feliperoberto

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

jasonadkison avatar Jan 16 '15 19:01 jasonadkison

sudo npm install jsxc worked for me also

JavascriptMick avatar Feb 19 '15 21:02 JavascriptMick

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

hawaiifi avatar Feb 24 '15 23:02 hawaiifi

+1 @hawaiifi

chitopolo avatar Apr 29 '15 14:04 chitopolo

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

jsgoller1 avatar Jun 02 '15 00:06 jsgoller1

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.

SungminAditazz avatar Jul 16 '15 21:07 SungminAditazz

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

mertyesin avatar Nov 02 '16 06:11 mertyesin

Try using the following command:

sudo npm run-script build

It worked for me

tarifrr avatar Jan 02 '17 19:01 tarifrr

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

imgeraldalinio avatar May 03 '18 16:05 imgeraldalinio