简体   繁体   中英

Every npm command throwing errors

I'm playing around with a test Laravel app and I'm trying to run "npm run watch" but it just throws errors. Even with "npm install", it does the same thing. I'm on a Mac by the way. I just can't get anything to work and I have no idea why. If I've missed some information that you need, please tell me. Thanks in advance!

npm run watch - log file

npm install - error from terminal (log file was like 10k lines)

You have to try to uninstall the node.js and again install the nodejs(8.00.4 LTS version. Link(" https://nodejs.org/en/download/ ")). Then to checking the node.js running properly or not go to the terminal and type command 'node -v' it shows the node.js installed version. Then try to implement the npm commands.

I've got everything working now. I just needed to change ownership of the node_module files. <3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM