Install NPM?
npm is not recognized as an internal and external command
Thats what i get when i tried to type npm install on my command line. How can i solve this error?
@SNAPEY - yes i search for it and i found on laravel documentation that i need to install node.js first now i tried again on my command line type again npm install and something is installing. new to this kind of stuff vue
I have faced same issue use below one in your main.blade.php or home.blade.php and you can use then npm mix.js.
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
https://laracasts.com/discuss/channels/general-discussion/passport-npm-run-dev-fails
@munazzil you are wrong , don't have to do this . If you are using windows , 99% chance is you did not set the path enviroment right
@maverickchan Can you please give me a alternative solution. If you point out that i am wrong without a solution or trying, how could you come for this conclusion?. I have using as like this in my current project. Without testing I won't give others for solution.
@MUNAZZIL - The thread is regarding the npm command error nothing to do with vue yet.
NPM is a package manager for javascript plugin whereas Vuejs is just a JavaScript framework like jQuery.
You may encountered the same error while installing the vuejs when installing via npm install method hence your solution by including the CDN javascript into your main page did solve your issue but still it is not really solve the issue Lestah encountered unless he only want to including vuejs.
But i also not agree with MaverickChan because i more believed that 99.9% is did not have the nodejs install as the environment PATH is set by default when installing the nodejs.
@siangboon Yes,@lestah has mentioned in the second comment he has occur with npm issue as well? , Can you guys suggest a solution rather than talking to other things. At least provide your's project things.
@MUNAZZIL - Lestah had resolved his issues as stated " i tried again on my command line type again npm install and something is installing."... and that's nothing to do with any project but more related to setup.
@siangboon Yes Thank you for your concern with that.and will wait until his update , But for the sure i have been stuck with this npm for a month and my Technical Lead has told me to use as like this and what amazing it has worked out.
@SIANGBOON - i think we are done here . He has no curtesy.
@maverickchan When I try to run npm install then i got as like below , Can you suggest me anything?
c:\xampp\htdocs\books>npm install
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not
permitted, lstat 'c:\xampp\htdocs\books\node_modules\fsevents\node_modules'
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer
dependencies yourself.
npm WARN [email protected] requires a peer of imagemin@^5.0.0 || ^6.0.0 but none is installed. You must
install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted
{"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
up to date in 47.741s
@MUNAZZIL - The answer is already in the note.Try reading the message. If you want to install , install yourself , it says this is harmless.
@lestah please mark those reply which solve your issue as the answer, or reply the solution you did, with proper guideline if possible so other can learn from it.
Please or to participate in this conversation.