cross-env NODE_ENV=development npm run webpack-development - reactjs

il-17g5-app#0.0.1 start /Users/ssurisettii/Documents/il-17g5-app
cross-env NODE_ENV=development npm run webpack-development
sh: cross-env: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! il-17g5-app#0.0.1 start: cross-env NODE_ENV=development npm run webpack-development
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the il-17g5-app#0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ssurisettii/.npm/_logs/2020-08-25T07_43_41_632Z-debug.log

1.remove node_moudles
2.remove packagelock.json
3.install npm

Related

Facing issue with babel transpile

I have configure babel but while running I am facing below error
> npx babel node_modules/web-b/src/ -d dist --out-dir node_modules/web-b/src/
node_modules\web-b\src\graphql\mutations\cartValidate\cartvalidate.js -> node_modules\web-
b\src\graphql\mutations\cartValidate\cartvalidate.js
node_modules\web-b\src\graphql\mutations\cartValidate\cartvalidate.test.js -> node_modules\web-
b\src\graphql\mutations\cartValidate\cartvalidate.test.js
node_modules/web-b/src/index.js: Unexpected token (18:4)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! web-acc#0.1.0 transpile:buy: `npx babel node_modules/web-b/src/ -d dist --out-dir
node_modules/web-b/src/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the web-acc#0.1.0 transpile:buy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\raj\AppData\Roaming\npm-cache\_logs\2020-04-26T05_21_30_237Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! web-acc#0.1.0 transpile:all: `npm run transpile:buy && npm run transpile:common && npm run
transpile:shop`
npm ERR! Exit status 1

ERR! code ELIFECYCLE errno 1 when run the react project

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webapp#0.1.0 start: `rimraf ./build && react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webapp#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/admin-pc/.npm/_logs/2019-11-08T11_10_32_424Z-debug.log
uninstalled the nodejs LTS version.
install the nodejs current version in c:/windows/system32
and its working again!!
refer the Link:https://github.com/facebook/create-react-app/issues/6950

sh: 1: tailwind: not found when run npm start

Hi I configured tailwind css with react but keep getting error when I run npm start sh: 1: tailwind: not found
demo#0.1.0 start /home/tarek/Documents/Tong/tripcanvas-assesment
npm run tailwind:css && react-scripts start
demo#0.1.0 tailwind:css /home/tarek/Documents/Tong/tripcanvas-assesment
tailwind build src/css/tailwind.src.css -c tailwind.js -o src/css/tailwind.css
sh: 1: tailwind: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! demo#0.1.0 tailwind:css: `tailwind build src/css/tailwind.src.css -c tailwind.js -o src/css/tailwind.css`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the demo#0.1.0 tailwind:css script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/tarek/.npm/_logs/2019-07-26T06_27_45_711Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! demo#0.1.0 start: `npm run tailwind:css && react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the demo#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/tarek/.npm/_logs/2019-07-26T06_27_45_757Z-debug.log
Can you show us your package.json?
Have you installed scripts at all? npm or yarn

gh-pages fails on `run deploy`

GitHub Pages deploy fails and I don't have any idea why.
Already deleted node_modules and reinstalled them.
This is the output from the terminal:
> lvl-counter#0.1.0 deploy /Users/9to5dev/github/lvl-counter
> gh-pages -d build
sh: gh-pages: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! lvl-counter#0.1.0 deploy: `gh-pages -d build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the lvl-counter#0.1.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
enter code here
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/9to5dev/.npm/_logs/2019-01-13T12_42_36_512Z-debug.log
Thank you for your help!
Did you try installing gh-pages?
npm install gh-pages

Broken `laravel-mix` and `npm watch` after installing `react-addons-css-transition-group` NPM package

I am working on a laravel project with reactjs.
When I installed react-addons-css-transition-group the following message was displayed:
+ react-addons-css-transition-group#15.6.0
added 5 packages and removed 1124 packages in 68.535s
After that laravel-mix and npm watch do not work.
The following message is displayed when npm watch is executed:
'cross-env' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "watch" "--scripts-prepend-node-path=auto"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! # watch: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # watch script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
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 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\wamp64\www\test\npm-debug.log

Resources