Hello again to the whole community, I am trying after having deleted the package.json and node_modules several times to reinstall npm in my project but it doesn't work for me in any way.
When I do npm install literally nothing happens, but when I do npm run dev it throws the following error:
tom#tom-CR62-7ML:/var/www/html/Proyectos/clinic$ npm run dev
> # dev /var/www/html/Proyectos/clinic
> npm run development
> # development /var/www/html/Proyectos/clinic
> mix
sh: 1: mix: not found
npm ERR! Linux 4.15.0-135-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "development"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! # development: `mix`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the # development script 'mix'.
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! mix
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! /var/www/html/Proyectos/clinic/npm-debug.log
npm ERR! Linux 4.15.0-135-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "dev"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
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! /var/www/html/Proyectos/clinic/npm-debug.log
If any expert can help me on the subject, I would be grateful since I have been dealing with this for several hours. Thank you!
I add my package.json file
{
"name": "clinic",
"version": "1.0.0",
"description": "<p align=\"center\"><img src=\"https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg\" width=\"400\"></p>",
"main": "webpack.mix.js",
"directories": {
"test": "tests"
},
"scripts": {
"test": "dev"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Code1995Tom/clinic.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Code1995Tom/clinic/issues"
},
"homepage": "https://github.com/Code1995Tom/clinic#readme"
}
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 have installed package npm i vue-admin-paper-dashboard. And after that when I run
npm install I am getting below error:
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" "install"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! path E:\xampp\htdocs\VUEjs Templates\VUEjs-1\vue-paper-dashboard\node_modules\js-beautify\js\bin\css-beautify.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'E:\xampp\htdocs\VUEjs Templates\VUEjs-1\vue-paper-dashboard\node_modules\js-beautify\js\bin\css-beautify.js'
npm ERR! enoent ENOENT: no such file or directory, chmod 'E:\xampp\htdocs\VUEjs Templates\VUEjs-1\vue-paper-dashboard\node_modules\js-beautify\js\bin\css-beautify.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
And when I run npm run dev, I am getting below error:
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" "run" "dev"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! vue-admin-paper-dashboard#1.0.0 dev: `cross-env ENABLE_ESLINT=true node build/dev-server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-admin-paper-dashboard#1.0.0 dev script 'cross-env ENABLE_ESLINT=true node build/dev-server.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 vue-admin-paper-dashboard package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env ENABLE_ESLINT=true node build/dev-server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs vue-admin-paper-dashboard
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls vue-admin-paper-dashboard
npm ERR! There is likely additional logging output above.<br />
NOTE: I have installed cross-env package globally.
EDIT:
I have tried cloning the project: LINK, and then run npm install still I am getting same error.
JS-Beautify 1.7.0 is broken, version 1.6.14 must work:
https://stackoverflow.com/a/46275582/2953376
https://github.com/beautify-web/js-beautify/issues/1247
to fix the JS-Beautify 1.7.0 be sure you are using the node version >= 8. add the package-lock.json in the project root
add the version of JS-Beautify in the "dependencies" like this:
{
"name": "my project name",
"version": "1.0.0",
"lockfileVersion": 1,
"dependencies": {
"js-beautify": {
"version": "1.6.14",
"resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.6.14.tgz",
"integrity": "sha1-07j3Mi0CuSd9WL0jgmTDJ+WARM0=",
"dev": true
}
}
}
Have you tried installing using flags --save or --save-dev?
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.
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.