remote:npm notice创建了一个lockfile作为package-lock.json。你应该提交这个文件

时间:2017-06-19 17:54:18

标签: json node.js git npm

这是同一个问题:

npm notice created a lockfile as package-lock.json. You should commit this file

但是当尝试使用此代码推送更新时,答案无效:

Js-Mac:Evennode server j$ git add -A
Js-Mac:Evennode server j$ git commit -m "asdd"
[master a1e7bc0] asdd
 1 file changed, 1 insertion(+), 1 deletion(-)
Js-Mac:Evennode server j$ git push -u origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 275 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Downloading app
remote: ---> Downloading cache
remote: ---> Restoring cached modules
remote: Loading cached modules
remote: - node_modules (skipping - exists)
remote: - bower_components (skipping - not in cache)
remote: ---> Installing modules
remote: npm notice created a lockfile as package-lock.json. You should commit this file.
remote: npm WARN server@1.0.0 No description
remote: 
remote: up to date in 0.32s
remote: ---> Building app image
remote: ---> Uploading app image
remote: ---> Restarting app
remote: 
remote: 
remote: *************************************
remote: *     APP SUCCESSFULLY DEPLOYED     *
remote: *************************************
remote: 
remote: 
To git.evennode.com:c2c3efd78df9974631320f4ce68e7b7d.git
   fd5f549..a1e7bc0  master -> master
Branch master set up to track remote branch master from origin.

它表示提交此文件,但该文件在我的Mac上无处可用。如何删除此错误?

0 个答案:

没有答案