Who knows the solution to this bug? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Who knows the solution to this bug?

when i use 'npm install' in cmd for install package that i want (express , nodemon , socket.io , socket.io-client) show me this bug. i install latest the package. Bug is : npm notic created a lockfile as package-lock.json. you should commit this file. npm warn [email protected] no respository field. npm warn oprional 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":"ia31"}) added 312 packages in 41.882s

29th Aug 2018, 1:18 PM
Mohammad
Mohammad - avatar
1 Answer
0
lock files need not be committed. the lock file purposely holds the file so that you won't update it during an active installation. if you face problem you can stop the installation , delete the lock file and try again
1st Sep 2018, 4:52 AM
You