+ 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 client-server@1.0.1 no respository field. npm warn oprional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents): npm warn notsup SKIPPING OPTIONAL DEPENDENCY: unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia31"}) added 312 packages in 41.882s
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