I use laravel 5.4
I follow here : https://laravel.com/docs/5.4/mix
If I run this : npm install --no-bin-links, the result like this :
npm WARN deprecated express#2.5.11: express 2.x series is deprecated
npm WARN deprecated connect#1.9.2: connect 1.x series is deprecated
npm ERR! Windows_NT 6.2.9200 npm ERR! argv "C:\Program
Files\nodejs\node.exe"
"C:\Users\chelsea\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js"
"install" "--no-bin-links" npm ERR! node v6.9.1 npm ERR! npm v3.10.9
npm ERR! Maximum call stack size exceeded npm ERR! npm ERR! If you
need help, you may report this error at: npm ERR!
https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! C:\xampp\htdocs\myshop\npm-debug.log
There exist error
How can I solve the error?
I use windows 7
I want to fix the error, because I want to compile assets (npm run watch)
Update :
After that I try run npm run dev, the result like this :
# dev C:\xampp\htdocs\myshop
npm run development
# development C:\xampp\htdocs\myshop
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
'cross-env' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.2.9200 npm ERR! argv "C:\Program
Files\nodejs\node.exe"
"C:\Users\chelsea\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js"
"run" "development" npm ERR! node v6.9.1 npm ERR! npm v3.10.9 npm
ERR! code ELIFECYCLE npm ERR! # development: cross-env
NODE_ENV=development node_modules/webpack/bin/webpack.js --progress
--hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the # development script
'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js
--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 --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! C:\xampp\htdocs\myshop\npm-debug.log
npm ERR! Windows_NT 6.2.9200 npm ERR! argv "C:\Program
Files\nodejs\node.exe"
"C:\Users\chelsea\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js"
"run" "dev" npm ERR! node v6.9.1 npm ERR! npm v3.10.9 npm ERR! code
ELIFECYCLE npm ERR! # dev: npm run development npm ERR! Exit status
1 npm ERR! npm ERR! Failed at the # dev script 'npm run development'.
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! npm run development 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! C:\xampp\htdocs\myshop\npm-debug.log
I try fix it with answer from #Yevgeniy Afanasyev
This : Laravel 5.4 'cross-env' is not recognized as an internal or external command
But it's the same
Try to execute this command one more time.
Related
I have just moved from linux ubuntu to windows and here first errors. When i try to restart the app i receive this errors.And every time i have to restart the whole computer in order to see the changes.After restarting the whole computer npm start works fine.
i tried to update the npm but no result.
Could anyone help?
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! exproject#1.0.0 start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the exproject#1.0.0 start script 'node ./bin/www'.
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 exproject package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs exproject
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls exproject
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\sashi\Desktop\nprojects\basicexpress\exproject\npm-debug.log
chage
"scripts": {
"start": "./bin/www"
},
To
"scripts": {
"start": "node ./bin/www"
},
I'm with Centos7, installed on VirtualBox (true OS: Windows 7).
Node version: 6.10.3
Npm version: 3.10.10
I installed vue-cli, like this:
sudo npm install -g vue-cli
Then I created a new vue project, like this:
sudo vue init webpack-simple mynewproject
But I get an error when running "npm run dev":
> mynewproject#1.0.0 dev /var/www/html/mynewproject
> cross-env NODE_ENV=development webpack-dev-server --open --hot
sh: cross-env : commande introuvable
npm ERR! Linux 3.10.0-514.el7.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "dev"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! vuetest#1.0.0 dev: `cross-env NODE_ENV=development webpack-dev-server --open --hot`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the mynewproject#1.0.0 dev script 'cross-env NODE_ENV=development webpack-dev-server --open --hot'.
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 vuetest 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 webpack-dev-server --open --hot
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs vuetest
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls vuetest
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/mynewproject/npm-debug.log
Does anyone know how to fix it?
You need to cd to your project directory and run:
npm install
You can find the instructions on the webpack-simple github repo
Execute the command npm run build:prod
I do not know if the error is in the port, or in one of the files.
npm ERR! Linux 2.6.32-642.6.2.el6.x86_64
npm ERR! argv "/root/.nvm/versions/node/v6.9.4/bin/node" "/root/.nvm/versions/node/v6.9.4/bin/npm" "run" "build:prod"
npm ERR! node v6.9.4
npm ERR! npm v4.1.1
npm ERR! code ELIFECYCLE
npm ERR! venfi#3.3.0 build:prod: `webpack --config config/webpack.prod.js --progress --profile --bail`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the venfi#3.3.0 build:prod script 'webpack --config config/webpack.prod.js --progress --profile --bail'.
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 venfi package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack --config config/webpack.prod.js --progress --profile --bail
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs venfi
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls venfi
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/clients/client6/web5/web/venfi/npm-debug.log
I have tried for many days, what can I do?
Thank you,
I'm trying to install marzipano: https://github.com/google/marzipano
when I execute command line "npm run dev", it happen:
$ npm run dev
> marzipano#0.5.2 dev C:\Users\Clavis\Desktop\marzipano-master
> scripts/dev
'scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Clavis\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v6.9.4
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! marzipano#0.5.2 dev: `scripts/dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the marzipano#0.5.2 dev script 'scripts/dev'.
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 marzipano package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! scripts/dev
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs marzipano
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls marzipano
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Clavis\Desktop\marzipano-master\npm-debug.log
npm-debug.log: https://app.box.com/s/f0yxb2hiu49gp7rsgv5qm26auftm1zka
how to solve this error?
I am trying to compile files with webpack and npm for my reactJS applciation.
When I am running:
npm install --save react-websocket
Its working fine.
Next when I am executing
npm start
getting the following error:
> reactapp#1.0.0 start D:\ReactServer
> webpack-dev-server --hot
'webpack-dev-server' 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" "start"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code ELIFECYCLE
npm ERR! reactapp#1.0.0 start: `webpack-dev-server --hot`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reactapp#1.0.0 start script 'webpack-dev-server -- hot'.
npm ERR! This is most likely a problem with the reactapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack-dev-server --hot
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs reactapp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls reactapp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\ReactServer\npm-debug.log
Can anybody help me with this?
I think you do not have webpack-dev-server installed on your system.
npm install -g webpack-dev-server
run the above command on cmd/terminal. Hopefully it will resolve your issue.